fix(Core/Movement): DAMAGE_FALL_TO_VOID bypasses all immunities (#25211)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Andrew
2026-03-24 23:41:23 -03:00
committed by GitHub
parent 8d218a7558
commit c607c9cfe1

View File

@@ -769,7 +769,9 @@ bool Player::IsImmuneToEnvironmentalDamage()
uint32 Player::EnvironmentalDamage(EnviromentalDamage type, uint32 damage)
{
if (IsImmuneToEnvironmentalDamage())
// DAMAGE_FALL_TO_VOID bypasses all immunities (e.g. Divine Shield) to prevent
// players from being stuck infinitely falling below the map
if (type != DAMAGE_FALL_TO_VOID && IsImmuneToEnvironmentalDamage())
return 0;
// Absorb, resist some environmental damage type