Core/Creatures: Remove hover on death
Port From (https://github.com/TrinityCore/TrinityCore/commit/a91edcb9524b53f027a8ef8c247a443a9bb42f1e)
This commit is contained in:
@@ -989,7 +989,9 @@ namespace Game.Entities
|
||||
else
|
||||
{
|
||||
RemoveUnitMovementFlag(MovementFlag.Hover);
|
||||
if (hoverHeight != 0)
|
||||
|
||||
//! Dying creatures will MoveFall from setDeathState
|
||||
if (hoverHeight != 0 && (!IsDying() || !IsUnit()))
|
||||
{
|
||||
float newZ = GetPositionZ() - hoverHeight;
|
||||
UpdateAllowedPositionZ(GetPositionX(), GetPositionY(), ref newZ);
|
||||
|
||||
Reference in New Issue
Block a user