diff options
| author | Shauren <shauren.trinity@gmail.com> | 2025-10-26 09:55:49 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2025-10-26 09:55:49 +0100 |
| commit | 154f960655de46683250b1f3380322a8286e45e7 (patch) | |
| tree | c3eaf88ec42ee6ddcdc3bae86b26ced6708f7724 /src | |
| parent | dfd27d4795a7a164a08ade5a4c4fc9ca51099f0f (diff) | |
Revert "Core/Entities: followup f4d8105064afdf98212320b5bd1569f2af3fa68a"
This reverts commit 6afc4dac6152014c1bf4c1d808c2c9bc9a1c80f2.
Diffstat (limited to 'src')
| -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..cca0d47a7e2 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 && ToCreature()->IsInAir(*this, GetFloorZ(), false) && !IsUnderWater()) { GetMotionMaster()->AddFlag(MOTIONMASTER_FLAG_STATIC_PREVENT_INITIALIZATION); SetFall(true); |
