*Fix the bug that possessed creature cannot melee.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-14 09:20:23 -06:00
parent 25720e5a90
commit c9874ee715
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -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())
+1
View File
@@ -41,6 +41,7 @@ class TRINITY_DLL_DECL PossessedAI : public PassiveAI
public:
PossessedAI(Creature *c) : PassiveAI(c) {}
void AttackStart(Unit *target);
void UpdateAI(const uint32);
void EnterEvadeMode() {}