*Update creature formation code.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-06 20:33:52 -05:00
parent e8866340ce
commit ac4edf0e09
10 changed files with 169 additions and 196 deletions
-8
View File
@@ -24,7 +24,6 @@
#include "Creature.h"
#include "Player.h"
#include <cassert>
#include "CreatureGroups.h"
/** Traveller is a wrapper for units (creatures or players) that
* travel from point A to point B using the destination holder.
@@ -109,13 +108,6 @@ inline float Traveller<Creature>::GetMoveDestinationTo(float x, float y, float z
template<>
inline void Traveller<Creature>::MoveTo(float x, float y, float z, uint32 t)
{
//Call for creature group update
if(i_traveller.GetFormation() && i_traveller.GetFormation()->getLeader() == &i_traveller && !i_traveller.isInCombat())
{
i_traveller.GetFormation()->LeaderMovedInEvade();
sLog.outDebug("Traveller<Creature>::MoveTo(){GUID %u calls LeaderMovedInEvade()}", i_traveller.GetGUIDLow());
}
//i_traveller.AI_SendMoveToPacket(x, y, z, t, i_traveller.GetUnitMovementFlags(), 0);
i_traveller.SendMonsterMove(x, y, z, t);
}