We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfd27d4 commit 154f960Copy full SHA for 154f960
1 file changed
src/server/game/Entities/Unit/Unit.cpp
@@ -8761,7 +8761,7 @@ void Unit::setDeathState(DeathState s)
8761
{
8762
if (GetMotionMaster()->StopOnDeath())
8763
8764
- 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())
8765
8766
GetMotionMaster()->AddFlag(MOTIONMASTER_FLAG_STATIC_PREVENT_INITIALIZATION);
8767
SetFall(true);
0 commit comments