Fix Hymn of Hope. Thanks Proof.
Fixes issue #1322. Fixes issue #1428. --HG-- branch : trunk
This commit is contained in:
@@ -4679,8 +4679,13 @@ void AuraEffect::HandleAuraModIncreaseEnergy(AuraApplication const * aurApp, uin
|
||||
// Special case with temporary increase max/current power (percent)
|
||||
if (GetId()==64904) // Hymn of Hope
|
||||
{
|
||||
if(mode & AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK)
|
||||
target->SetPower(powerType, apply ? GetAmount() + target->GetPower(powerType) : target->GetPower(powerType) - GetAmount());
|
||||
if (mode & AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK)
|
||||
{
|
||||
int32 change = target->GetPower(powerType) + (apply ? GetAmount() : -GetAmount());
|
||||
if (change < 0)
|
||||
change = 0;
|
||||
target->SetPower(powerType, change);
|
||||
}
|
||||
}
|
||||
|
||||
// generic flat case
|
||||
|
||||
Reference in New Issue
Block a user