mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
Core/Units: Offset z coordinate only if MOVEMENTFLAG_HOVER is present, not MOVEMENTFLAG_DISABLE_GRAVITY.
(Remnant from an early incorrect version of my UNIT_FIELD_HOVERHEIGHT patch)
This commit is contained in:
@@ -763,7 +763,7 @@ bool Creature::Create(uint32 guidlow, Map* map, uint32 phaseMask, uint32 Entry,
|
||||
return false;
|
||||
|
||||
//! Need to be called after CreateFromProto
|
||||
if (HasUnitMovementFlag(MOVEMENTFLAG_DISABLE_GRAVITY))
|
||||
if (HasUnitMovementFlag(MOVEMENTFLAG_HOVER))
|
||||
z += GetFloatValue(UNIT_FIELD_HOVERHEIGHT);
|
||||
|
||||
Relocate(x, y, z, ang);
|
||||
|
||||
Reference in New Issue
Block a user