Core/Spells: Fix spells 59915 and 59906 / Discerning Eye of the Beast and Swift Hand of Justice (Heirloom trinkets)
Fixes issue #2435 Fixes issue #2529 --HG-- branch : trunk
This commit is contained in:
@@ -8035,6 +8035,21 @@ bool Unit::HandleAuraProc(Unit * pVictim, uint32 damage, Aura * triggeredByAura,
|
|||||||
RemoveAuraFromStack(dummySpell->Id);
|
RemoveAuraFromStack(dummySpell->Id);
|
||||||
*handled = true;
|
*handled = true;
|
||||||
break;
|
break;
|
||||||
|
// Discerning Eye of the Beast
|
||||||
|
case 59915:
|
||||||
|
{
|
||||||
|
CastSpell(this, 59914, true); // 59914 already has correct basepoints in DBC, no need for custom bp
|
||||||
|
*handled = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
// Swift Hand of Justice
|
||||||
|
case 59906:
|
||||||
|
{
|
||||||
|
int32 bp0 = CalculatePctN(GetMaxHealth(), SpellMgr::CalculateSpellEffectAmount(dummySpell, 0));
|
||||||
|
CastCustomSpell(this, 59913, &bp0, NULL, NULL, true);
|
||||||
|
*handled = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SPELLFAMILY_PALADIN:
|
case SPELLFAMILY_PALADIN:
|
||||||
|
|||||||
Reference in New Issue
Block a user