Fix some combat behaviour of NPC-Pets

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
faramir118 2012-01-20 00:42:51 +01:00 committed by Schmoozerd
parent 177bc78108
commit eca3586d74
6 changed files with 22 additions and 16 deletions

View file

@ -4005,9 +4005,7 @@ void Aura::HandleModPossess(bool apply, bool Real)
if(target->GetTypeId() == TYPEID_UNIT)
{
((Creature*)target)->AIM_Initialize();
if (((Creature*)target)->AI())
((Creature*)target)->AI()->AttackedBy(caster);
target->AttackedBy(caster);
}
}
}
@ -4200,8 +4198,7 @@ void Aura::HandleModCharm(bool apply, bool Real)
if(target->GetTypeId() == TYPEID_UNIT)
{
((Creature*)target)->AIM_Initialize();
if (((Creature*)target)->AI())
((Creature*)target)->AI()->AttackedBy(caster);
target->AttackedBy(caster);
}
}
}