Originally Posted by Infinite-Loop-Alchemist
but spell normals work but not crits.
|
I'm not exactly sure what you mean by this. Is it that you never see this triggered?
Lua Code:
else
if amount > CritMaticData[spellName].highestCrit then
if spellName == "Auto Attack" then
return
end
CritMaticData[spellName].highestCrit = amount
PlaySound(888, "SFX")
CritMatic.ShowNewCritMessage(spellName, amount)
print("New highest crit hit for " .. spellName .. ": " .. CritMaticData[spellName].highestCrit)
end
end
Or something else?
Edit: Taking a closer look:
Lua Code:
if eventType == "SWING_DAMAGE" then
spellName = "Auto Attack"
spellID = 6603 -- or specify the path to a melee icon, if you have one
amount, _, _, _, _, _, critical = unpack(eventInfo, 12, 18)
else
spellID, spellName, spellSchool = unpack(eventInfo, 12, 14)
amount, overhealing, absorbed, critical = unpack(eventInfo, 15, 21)
end
If the eventType is not "SWING_DAMAGE" then critical is unpacked from argument 18 not 21
Lua Code:
amount, overhealing, _, _, _, absorbed, critical = unpack(eventInfo, 15, 21)