mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[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:
parent
fc7bb9468f
commit
015c6e4019
2 changed files with 2 additions and 2 deletions
|
|
@ -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())
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue