View Single Post
07-29-23, 10:52 AM   #7
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,897
Lua Code:
  1. elseif eventType == "SPELL_HEAL" or eventType == "SPELL_PERIODIC_HEAL" then
  2.     spellID, spellName, spellSchool = unpack(eventInfo, 12, 14)
  3.     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:
  1. elseif eventType == "SPELL_HEAL" or eventType == "SPELL_PERIODIC_HEAL" then
  2.     spellID, spellName, spellSchool = unpack(eventInfo, 12, 14)
  3.     amount, overhealing,_ ,_ ,_ , absorbed, critical = unpack(eventInfo, 15, 21)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote