aboutsummaryrefslogtreecommitdiff
path: root/src/game/NullCreatureAI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/NullCreatureAI.cpp')
-rw-r--r--src/game/NullCreatureAI.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/NullCreatureAI.cpp b/src/game/NullCreatureAI.cpp
index 5547ad8f059..a92e7125eaf 100644
--- a/src/game/NullCreatureAI.cpp
+++ b/src/game/NullCreatureAI.cpp
@@ -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())