*Update pet's speed when pet is incombat rather than when owner is in combat.
--HG-- branch : trunk
This commit is contained in:
1 parent
3c1691497d
commit
5d4dcba0de
2 files changed
+20
-16
No files matched your search
@@ -73,6 +73,9 @@ void PetAI::AttackStart(Unit *u)
|
||||
|
||||
if(i_pet.Attack(u,true))
|
||||
{
|
||||
i_pet.SetInCombatWith(u);
|
||||
u->SetInCombatWith(&i_pet);
|
||||
|
||||
i_pet.clearUnitState(UNIT_STAT_FOLLOW);
|
||||
// TMGs call CreatureRelocation which via MoveInLineOfSight can call this function
|
||||
// thus with the following clear the original TMG gets invalidated and crash, doh
|
||||
|
||||
Reference in new issue
Block a user