diff options
| author | megamage <none@none> | 2009-08-10 15:50:19 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-08-10 15:50:19 -0500 |
| commit | 7982a75c5c759efc1f4a85853524074bf579638b (patch) | |
| tree | fc58c48aa676491901552dc7795c84aac2b8a524 /src/game/NullCreatureAI.cpp | |
| parent | feba13e6504bc8c1523b1101d3131d3afb219577 (diff) | |
*Set react passive for passiveAI creatures.
--HG--
branch : trunk
Diffstat (limited to 'src/game/NullCreatureAI.cpp')
| -rw-r--r-- | src/game/NullCreatureAI.cpp | 5 |
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()) |
