fix(Core/SmartAI): Mind-controlled creatures can auto-attack its vict… (#12863)
fix(Core/SmartAI): Mind-controlled creatures can auto-attack its victims. Fixes #12624
This commit is contained in:
@@ -524,7 +524,17 @@ void SmartAI::UpdateAI(uint32 diff)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!IsAIControlled())
|
if (!IsAIControlled())
|
||||||
|
{
|
||||||
|
if (CharmInfo* charmInfo = me->GetCharmInfo())
|
||||||
|
{
|
||||||
|
if (charmInfo->IsCommandAttack() && mCanAutoAttack)
|
||||||
|
{
|
||||||
|
DoMeleeAttackIfReady();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!UpdateVictim())
|
if (!UpdateVictim())
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user