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