Skip to content

Commit

Permalink
Fix sheep moving
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife authored and cyberium committed Jan 10, 2017
1 parent e3e8500 commit f737234
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/Unit.cpp
Expand Up @@ -11113,12 +11113,12 @@ void Unit::SetIncapacitatedState(bool apply, uint32 state, ObjectGuid casterGuid
// Update incapacitated movement if required:
if (HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_CONFUSED))
{
StopMoving();
StopMoving(true);
GetMotionMaster()->MoveConfused();
}
else if (HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_FLEEING))
{
StopMoving();
StopMoving(true);
GetMotionMaster()->MoveFleeing(IsInWorld() ? GetMap()->GetUnit(casterGuid) : nullptr, time);
}
}
Expand Down

0 comments on commit f737234

Please sign in to comment.