Implement speed reduction at creatures DoFleeToGetAssistance, by NoFantasy.
--HG-- branch : trunk
This commit is contained in:
1 parent
ec10853f22
commit
c9a3698a11
3 files changed
+21
-5
No files matched your search
@@ -153,9 +153,7 @@ template<class T>
|
||||
void
|
||||
TargetedMovementGenerator<T>::Initialize(T &owner)
|
||||
{
|
||||
if (owner.GetTypeId() == TYPEID_UNIT && ((Creature*)&owner)->HasSearchedAssistance())
|
||||
owner.AddUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
|
||||
else
|
||||
if (owner.isInCombat())
|
||||
owner.RemoveUnitMovementFlag(MOVEMENTFLAG_WALK_MODE);
|
||||
|
||||
_setTargetLocation(owner);
|
||||
|
||||
Reference in new issue
Block a user