mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-06 17:08:23 +01:00
Core/Creatures: update a creature's home position on engage when it's using a cyclic spline
This commit is contained in:
@@ -3321,7 +3321,7 @@ void Creature::AtEngage(Unit* target)
|
||||
RefreshSwimmingFlag();
|
||||
|
||||
MovementGeneratorType const movetype = GetMotionMaster()->GetCurrentMovementGeneratorType();
|
||||
if (movetype == WAYPOINT_MOTION_TYPE || movetype == POINT_MOTION_TYPE || (IsAIEnabled && AI()->IsEscorted()))
|
||||
if (movetype == WAYPOINT_MOTION_TYPE || movetype == CYCLIC_SPLINE_MOTION_TYPE || movetype == POINT_MOTION_TYPE || (IsAIEnabled && AI()->IsEscorted()))
|
||||
SetHomePosition(GetPosition());
|
||||
|
||||
if (CreatureAI* ai = AI())
|
||||
|
||||
Reference in New Issue
Block a user