Core/Unit: Set stand state on damage only to players

Port From (https://github.com/TrinityCore/TrinityCore/commit/730a8da9e99fdb50459e9eb57d79ac995430125e)
This commit is contained in:
hondacrx
2022-05-25 13:39:33 -04:00
parent 78d39e4c19
commit b219548745
+4
View File
@@ -2705,6 +2705,10 @@ namespace Game.Entities
}
}
// make player victims stand up automatically
if (victim.GetStandState() != 0 && victim.IsPlayer())
victim.SetStandState(UnitStandStateType.Stand);
return damage;
}