Core/Spells: Fixed Val'anyr, Hammer of Ancient Kings proc

This commit is contained in:
Shauren
2011-02-01 19:01:56 +01:00
parent 22c9246d97
commit 704e0af9c4
+17 -8
View File
@@ -5635,6 +5635,23 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
}
break;
}
// Blessing of Ancient Kings (Val'anyr, Hammer of Ancient Kings)
case 64411:
{
basepoints0 = int32(CalculatePctN(damage, 15));
if (AuraEffect* aurEff = pVictim->GetAuraEffect(64413, 0, GetGUID()))
{
// The shield can grow to a maximum size of 20,000 damage absorbtion
aurEff->SetAmount(std::max<int32>(aurEff->GetAmount() + basepoints0, 20000));
// Refresh and return to prevent replacing the aura
aurEff->GetBase()->RefreshDuration();
return true;
}
target = pVictim;
triggered_spell_id = 64413;
break;
}
}
break;
}
@@ -8398,14 +8415,6 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig
return false;
break;
}
// Blessing of Ancient Kings (Val'anyr, Hammer of Ancient Kings)
case 64411:
{
basepoints0 = int32(CalculatePctN(damage, 15));
target = pVictim;
trigger_spell_id = 64413;
break;
}
// Decimation
case 63156:
case 63158: