- Ticket #167 fix: Light of the Martyr self-damage now does reduce the healing done (following WCL method).

- Fixed an issue where sometimes BeastMaster's Hati pet wasn't detected correctly.
This commit is contained in:
Tercio
2017-02-16 13:08:41 -02:00
parent b12688cae2
commit 337dd0af22
3 changed files with 26 additions and 8 deletions
+13
View File
@@ -248,6 +248,19 @@
--> spirit link toten
if (spellid == 98021) then
return parser:SLT_damage (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname, spelltype, amount, overkill, school, resisted, blocked, absorbed, critical, glacing, crushing, isoffhand)
--> Light of the Martyr - paladin spell which causes damage to the caster it self
elseif (spellid == 196917) then
local healingActor = healing_cache [who_name]
if (healingActor and healingActor.spells) then
local spell = healingActor.spells._ActorTable [spellid]
if (spell) then
healingActor.total = healingActor.total - (amount or 0)
spell.total = spell.total - (amount or 0)
return
end
end
return --> ignore this event
end
if (is_using_spellId_override) then