*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();
|
EnterEvadeMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PossessedAI::AttackStart(Unit *target)
|
||||||
|
{
|
||||||
|
me->Attack(target, true);
|
||||||
|
}
|
||||||
|
|
||||||
void PossessedAI::UpdateAI(const uint32 diff)
|
void PossessedAI::UpdateAI(const uint32 diff)
|
||||||
{
|
{
|
||||||
if(me->getVictim())
|
if(me->getVictim())
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ class TRINITY_DLL_DECL PossessedAI : public PassiveAI
|
|||||||
public:
|
public:
|
||||||
PossessedAI(Creature *c) : PassiveAI(c) {}
|
PossessedAI(Creature *c) : PassiveAI(c) {}
|
||||||
|
|
||||||
|
void AttackStart(Unit *target);
|
||||||
void UpdateAI(const uint32);
|
void UpdateAI(const uint32);
|
||||||
void EnterEvadeMode() {}
|
void EnterEvadeMode() {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user