mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
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))
|
||||
damage = GetMaxHealth() / 2;
|
||||
|
||||
// Divine Protection
|
||||
if (HasAura(498))
|
||||
{
|
||||
damage /= 2;
|
||||
}
|
||||
|
||||
final_damage = EnvironmentalDamage(DAMAGE_FALL, damage);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user