diff --git a/core/parser.lua b/core/parser.lua index 17f29b6b..8050f10c 100644 --- a/core/parser.lua +++ b/core/parser.lua @@ -677,7 +677,7 @@ [115069] = true, -- Stance of the Sturdy Ox (Monk) [20711] = true, -- Spirit of Redemption (Priest) } - + function parser:heal_absorb (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname, spellschool, owner_serial, owner_name, owner_flags, owner_flags2, shieldid, shieldname, shieldtype, amount) --[[statistics]]-- _detalhes.statistics.absorbs_calls = _detalhes.statistics.absorbs_calls + 1 @@ -688,6 +688,13 @@ if (ignored_shields [shieldid]) then return + + elseif (shieldid == 110913) then + --dark bargain + local max_health = _UnitHealthMax (owner_name) + if ((amount or 0) > (max_health or 1) * 4) then + return + end end --if (not absorb_spell_list [shieldid] and not gotit[shieldid]) then