*Fix the bug that possessed creature cannot melee.
--HG-- branch : trunk
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -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() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user