diff options
| author | ccrs <ccrs@users.noreply.github.com> | 2025-10-25 17:24:34 +0200 |
|---|---|---|
| committer | ccrs <ccrs@users.noreply.github.com> | 2025-10-25 17:24:34 +0200 |
| commit | c5e2a9485f23b7becbc9883db7dae440d57e5f0f (patch) | |
| tree | 89b7763964884e18ebd7efe21452b08cdf285948 | |
| parent | 6afc4dac6152014c1bf4c1d808c2c9bc9a1c80f2 (diff) | |
Core/Entities: bring back the root/stun check on unit death - for now
| -rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 65b18b43eec..c6ff7b651de 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -8761,7 +8761,7 @@ void Unit::setDeathState(DeathState s) { if (GetMotionMaster()->StopOnDeath()) { - if (GetTypeId() == TYPEID_UNIT && IsInAir(*this, GetFloorZ(), false) && !IsUnderWater()) + if (!HasUnitState(UNIT_STATE_ROOT | UNIT_STATE_STUNNED) && GetTypeId() == TYPEID_UNIT && IsInAir(*this, GetFloorZ(), false) && !IsUnderWater()) { GetMotionMaster()->AddFlag(MOTIONMASTER_FLAG_STATIC_PREVENT_INITIALIZATION); SetFall(true); |
