fix(Core/Spell): Divine Protection reduces fall damage (#4618)
This commit is contained in:
@@ -25718,6 +25718,12 @@ void Player::HandleFall(MovementInfo const& movementInfo)
|
|||||||
if (HasAura(43621))
|
if (HasAura(43621))
|
||||||
damage = GetMaxHealth() / 2;
|
damage = GetMaxHealth() / 2;
|
||||||
|
|
||||||
|
// Divine Protection
|
||||||
|
if (HasAura(498))
|
||||||
|
{
|
||||||
|
damage /= 2;
|
||||||
|
}
|
||||||
|
|
||||||
final_damage = EnvironmentalDamage(DAMAGE_FALL, damage);
|
final_damage = EnvironmentalDamage(DAMAGE_FALL, damage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user