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