Implement speed reduction at creatures DoFleeToGetAssistance, by NoFantasy.

--HG--
branch : trunk
This commit is contained in:
n0n4m3 committed 2010-01-16 19:35:30 +03:00
1 parent ec10853f22
commit c9a3698a11
3 files changed
+21 -5

No files matched your search

+1 -3
View File
@@ -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);