mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 07:48:02 +00:00
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:
@@ -769,7 +769,9 @@ bool Player::IsImmuneToEnvironmentalDamage()
|
|||||||
|
|
||||||
uint32 Player::EnvironmentalDamage(EnviromentalDamage type, uint32 damage)
|
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;
|
return 0;
|
||||||
|
|
||||||
// Absorb, resist some environmental damage type
|
// Absorb, resist some environmental damage type
|
||||||
|
|||||||
Reference in New Issue
Block a user