fix(Core/Spell): Divine Protection reduces fall damage (#4618)

This commit is contained in:
r0m1ntik 2021-02-21 20:23:46 +01:00 committed by GitHub
parent 57d9774957
commit 8dbdffab92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}