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:
parent
8d218a7558
commit
c607c9cfe1
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue