mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 01:37:01 +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
|
|
@ -1226,7 +1226,7 @@ void Spell::DoSpellHitOnUnit(Unit *unit, uint32 effectMask)
|
|||
unit->SetStandState(UNIT_STAND_STATE_STAND);
|
||||
|
||||
if (!unit->isInCombat() && unit->GetTypeId() != TYPEID_PLAYER && ((Creature*)unit)->AI())
|
||||
((Creature*)unit)->AI()->AttackedBy(realCaster);
|
||||
unit->AttackedBy(realCaster);
|
||||
|
||||
unit->AddThreat(realCaster);
|
||||
unit->SetInCombatWith(realCaster);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue