Lua Code:
elseif eventType == "SPELL_HEAL" or eventType == "SPELL_PERIODIC_HEAL" then
spellID, spellName, spellSchool = unpack(eventInfo, 12, 14)
amount, overhealing, absorbed, critical = unpack(eventInfo, 15, 18)
Pretty much the same problem (not differentiating correctly between swing and spell events). As well as the wrong positioning, here you're only retrieving args 15 to 18 and completely missing 20 and 21 (absorbed and critical)
Lua Code:
elseif eventType == "SPELL_HEAL" or eventType == "SPELL_PERIODIC_HEAL" then
spellID, spellName, spellSchool = unpack(eventInfo, 12, 14)
amount, overhealing,_ ,_ ,_ , absorbed, critical = unpack(eventInfo, 15, 21)