Код:
function Recount:SpellDamage(timestamp, eventtype, srcGUID, srcName, srcFlags, dstGUID, dstName, dstFlags,spellId, spellName, spellSchool, amount, overkill, school, resisted, blocked, absorbed, critical, glancing, crushing)
-- amount = amount - overkill -- Taking out overdamage on killing blows
local HitType="Hit" -- Elsia: Do NOT localize this, it breaks functionality!!! If you need this localized contact me on WowAce or *****.
local isDot
if eventtype == "SPELL_PERIODIC_DAMAGE" then
HitType="Tick" -- Elsia: Do NOT localize this, it breaks functionality!!! If you need this localized contact me on WowAce or *****.
spellName = spellName .." ("..L["DoT"]..")"
isDot = true
end
if critical then
HitType="Crit" -- Elsia: Do NOT localize this, it breaks functionality!!! If you need this localized contact me on WowAce or *****.
end
if eventtype == "DAMAGE_SPLIT" then
HitType="Split" -- Elsia: Do NOT localize this, it breaks functionality!!! If you need this localized contact me on WowAce or *****.
end
if crushing then
HitType="Crushing" -- Elsia: Do NOT localize this, it breaks functionality!!! If you need this localized contact me on WowAce or *****.
end
if glancing then
HitType="Glancing" -- Elsia: Do NOT localize this, it breaks functionality!!! If you need this localized contact me on WowAce or *****.
end
--[[ if blocked then
HitType="Block"
end
if absorbed then
HitType="Absorbed"
end--]]
if eventtype == "RANGE_DAMAGE" then spellSchool = school end
if spellId==50590 then spellName = "Жертвенный костер" end
Recount:AddDamageData(srcName, dstName, spellName, Recount.SpellSchoolName[spellSchool], HitType, amount, resisted, srcGUID, srcFlags, dstGUID, dstFlags, spellId, blocked, absorbed, isDot)
end