mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
fix(Core/Movement): DAMAGE_FALL_TO_VOID bypasses all immunities (#25211)
Co-authored-by: Claude Opus 4.6 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
8d218a7558
commit
c607c9cfe1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user