Core/Spells: Fix Paladin T9 Holy 4P Bonus
This commit is contained in:
@@ -6108,7 +6108,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
|
||||
{
|
||||
// Multiple effects stack, so let's try to find this aura.
|
||||
int32 bonus = 0;
|
||||
if (AuraEffect* aurEff = target->GetAuraEffect(47753, 0))
|
||||
if (AuraEffect const* aurEff = target->GetAuraEffect(47753, 0))
|
||||
bonus = aurEff->GetAmount();
|
||||
|
||||
basepoints0 = CalculatePctN(int32(damage), triggerAmount) + bonus;
|
||||
@@ -7955,6 +7955,9 @@ bool Unit::HandleAuraProc(Unit* pVictim, uint32 damage, Aura * triggeredByAura,
|
||||
if (pVictim->HasAura(53601))
|
||||
{
|
||||
int32 bp0 = CalculatePctN(int32(damage / 12), SpellMgr::CalculateSpellEffectAmount(dummySpell, 2));
|
||||
// Item - Paladin T9 Holy 4P Bonus
|
||||
if (AuraEffect const* aurEff = GetAuraEffect(67191, 0))
|
||||
AddPctN(bp0, aurEff->GetAmount());
|
||||
CastCustomSpell(pVictim, 66922, &bp0, NULL, NULL, true);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user