*Fix critter AI.
*Some AI structure change. --HG-- branch : trunk
This commit is contained in:
@@ -28,7 +28,7 @@ class Creature;
|
||||
class TRINITY_DLL_DECL PossessedAI : public CreatureAI
|
||||
{
|
||||
public:
|
||||
PossessedAI(Creature &c) : i_pet(c), i_victimGuid(0) {}
|
||||
PossessedAI(Creature *c) : i_pet(*c), i_victimGuid(0) {}
|
||||
|
||||
// Possessed creatures shouldn't aggro by themselves
|
||||
void MoveInLineOfSight(Unit *) {}
|
||||
@@ -36,7 +36,6 @@ class TRINITY_DLL_DECL PossessedAI : public CreatureAI
|
||||
void EnterEvadeMode() {}
|
||||
void JustDied(Unit*);
|
||||
void KilledUnit(Unit* victim);
|
||||
void AttackedBy(Unit*) {}
|
||||
bool IsVisible(Unit * u) const { return _isVisible(u); }
|
||||
|
||||
void UpdateAI(const uint32);
|
||||
|
||||
Reference in New Issue
Block a user