[9152] Prevent unexpected removal of move flag for following creatures not in combat

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-01-12 01:57:00 +01:00
parent fc7bb9468f
commit 015c6e4019
2 changed files with 2 additions and 2 deletions

View file

@ -93,7 +93,7 @@ void TargetedMovementGenerator<Creature>::Initialize(Creature &owner)
{
if (owner.HasSearchedAssistance())
owner.AddMonsterMoveFlag(MONSTER_MOVE_WALK);
else
else if (owner.isInCombat())
owner.RemoveMonsterMoveFlag(MONSTER_MOVE_WALK);
if (((Creature*)&owner)->canFly())