mirror of
https://github.com/mangosfour/server.git
synced 2025-12-31 04:37:04 +00:00
Fix some combat behaviour of NPC-Pets
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
177bc78108
commit
eca3586d74
6 changed files with 22 additions and 16 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue