mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[9165] Implement speed reduction at creatures DoFleeToGetAssistance
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
1e8e8f5fd2
commit
23a77a1d36
4 changed files with 23 additions and 6 deletions
|
|
@ -91,9 +91,7 @@ TargetedMovementGenerator<T>::_setTargetLocation(T &owner)
|
|||
template<>
|
||||
void TargetedMovementGenerator<Creature>::Initialize(Creature &owner)
|
||||
{
|
||||
if (owner.HasSearchedAssistance())
|
||||
owner.AddMonsterMoveFlag(MONSTER_MOVE_WALK);
|
||||
else if (owner.isInCombat())
|
||||
if (owner.isInCombat())
|
||||
owner.RemoveMonsterMoveFlag(MONSTER_MOVE_WALK);
|
||||
|
||||
if (((Creature*)&owner)->canFly())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue