Core/Spells: Fix crash when using spells with mindcontrol.
This commit is contained in:
@@ -201,9 +201,8 @@ namespace Game
|
|||||||
charmInfo.SetIsReturning(false);
|
charmInfo.SetIsReturning(false);
|
||||||
|
|
||||||
CreatureAI AI = pet.ToCreature().GetAI();
|
CreatureAI AI = pet.ToCreature().GetAI();
|
||||||
PetAI petAI = (PetAI)AI;
|
if (AI is PetAI)
|
||||||
if (petAI != null)
|
((PetAI)AI)._AttackStart(TargetUnit); // force target switch
|
||||||
petAI._AttackStart(TargetUnit); // force target switch
|
|
||||||
else
|
else
|
||||||
AI.AttackStart(TargetUnit);
|
AI.AttackStart(TargetUnit);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user