*Set react passive for passiveAI creatures.
--HG-- branch : trunk
This commit is contained in:
@@ -22,6 +22,11 @@
|
||||
#include "Creature.h"
|
||||
#include "TemporarySummon.h"
|
||||
|
||||
PassiveAI::PassiveAI(Creature *c) : CreatureAI(c)
|
||||
{
|
||||
me->SetReactState(REACT_PASSIVE);
|
||||
}
|
||||
|
||||
void PassiveAI::UpdateAI(const uint32)
|
||||
{
|
||||
if(me->isInCombat() && me->getAttackers().empty())
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
#include "CreatureAI.h"
|
||||
#include "CreatureAIImpl.h"
|
||||
|
||||
class TRINITY_DLL_DECL PassiveAI : public CreatureAI
|
||||
class TRINITY_DLL_SPEC PassiveAI : public CreatureAI
|
||||
{
|
||||
public:
|
||||
explicit PassiveAI(Creature *c) : CreatureAI(c) {}
|
||||
explicit PassiveAI(Creature *c);
|
||||
|
||||
void MoveInLineOfSight(Unit *) {}
|
||||
void AttackStart(Unit *) {}
|
||||
|
||||
Reference in New Issue
Block a user