[Core/Spell]: Fix Blessing of Ancient Kings (Val'anyr, Hammer of Ancient Kings) closes #6521

This commit is contained in:
Mik43l
2012-05-20 22:09:12 +02:00
parent 868e38ebcb
commit 388250961f
+1 -1
View File
@@ -5870,7 +5870,7 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere
if (AuraEffect* aurEff = victim->GetAuraEffect(64413, 0, GetGUID())) if (AuraEffect* aurEff = victim->GetAuraEffect(64413, 0, GetGUID()))
{ {
// The shield can grow to a maximum size of 20, 000 damage absorbtion // The shield can grow to a maximum size of 20, 000 damage absorbtion
aurEff->SetAmount(std::max<int32>(aurEff->GetAmount() + basepoints0, 20000)); aurEff->SetAmount(std::min<int32>(aurEff->GetAmount() + basepoints0, 20000));
// Refresh and return to prevent replacing the aura // Refresh and return to prevent replacing the aura
aurEff->GetBase()->RefreshDuration(); aurEff->GetBase()->RefreshDuration();