mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Revert "Core/Entities: bring back the root/stun check on unit death - for now"
This reverts commit c5e2a9485f.
This commit is contained in:
@@ -8761,7 +8761,7 @@ void Unit::setDeathState(DeathState s)
|
||||
{
|
||||
if (GetMotionMaster()->StopOnDeath())
|
||||
{
|
||||
if (!HasUnitState(UNIT_STATE_ROOT | UNIT_STATE_STUNNED) && GetTypeId() == TYPEID_UNIT && IsInAir(*this, GetFloorZ(), false) && !IsUnderWater())
|
||||
if (GetTypeId() == TYPEID_UNIT && IsInAir(*this, GetFloorZ(), false) && !IsUnderWater())
|
||||
{
|
||||
GetMotionMaster()->AddFlag(MOTIONMASTER_FLAG_STATIC_PREVENT_INITIALIZATION);
|
||||
SetFall(true);
|
||||
|
||||
Reference in New Issue
Block a user