aboutsummaryrefslogtreecommitdiff
path: root/src/game/NullCreatureAI.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-14 09:20:23 -0600
committermegamage <none@none>2009-03-14 09:20:23 -0600
commitc9874ee715480b41881704d40cc26f72562d5836 (patch)
tree71544004aa3d7e10cf70128b96ad48b1db352ab4 /src/game/NullCreatureAI.cpp
parent25720e5a9034ae5d50a9bf3d9a3b854035558ff9 (diff)
*Fix the bug that possessed creature cannot melee.
--HG-- branch : trunk
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 1bb787b25c3..8bea03d0216 100644
--- a/src/game/NullCreatureAI.cpp
+++ b/src/game/NullCreatureAI.cpp
@@ -27,6 +27,11 @@ void PassiveAI::UpdateAI(const uint32)
EnterEvadeMode();
}
+void PossessedAI::AttackStart(Unit *target)
+{
+ me->Attack(target, true);
+}
+
void PossessedAI::UpdateAI(const uint32 diff)
{
if(me->getVictim())