[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()) if (owner.HasSearchedAssistance())
owner.AddMonsterMoveFlag(MONSTER_MOVE_WALK); owner.AddMonsterMoveFlag(MONSTER_MOVE_WALK);
else else if (owner.isInCombat())
owner.RemoveMonsterMoveFlag(MONSTER_MOVE_WALK); owner.RemoveMonsterMoveFlag(MONSTER_MOVE_WALK);
if (((Creature*)&owner)->canFly()) if (((Creature*)&owner)->canFly())

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9151" #define REVISION_NR "9152"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__