aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorccrs <ccrs@users.noreply.github.com>2025-10-25 17:13:35 +0200
committerccrs <ccrs@users.noreply.github.com>2025-10-25 17:13:35 +0200
commit6afc4dac6152014c1bf4c1d808c2c9bc9a1c80f2 (patch)
tree0cf8592c7b634645c7a55a18fb1b5e2458439914
parentf4d8105064afdf98212320b5bd1569f2af3fa68a (diff)
Core/Entities: followup f4d8105064afdf98212320b5bd1569f2af3fa68a
Pretty sure that stunned/rooted creatures do fall also on death Remove useless casting
-rw-r--r--src/server/game/Entities/Unit/Unit.cpp2
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 cca0d47a7e2..65b18b43eec 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 (!HasUnitState(UNIT_STATE_ROOT | UNIT_STATE_STUNNED) && GetTypeId() == TYPEID_UNIT && ToCreature()->IsInAir(*this, GetFloorZ(), false) && !IsUnderWater())
+ if (GetTypeId() == TYPEID_UNIT && IsInAir(*this, GetFloorZ(), false) && !IsUnderWater())
{
GetMotionMaster()->AddFlag(MOTIONMASTER_FLAG_STATIC_PREVENT_INITIALIZATION);
SetFall(true);