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:
parent
03266f0ddc
commit
ba4911142b
1 changed files with 10 additions and 0 deletions
|
|
@ -524,7 +524,17 @@ void SmartAI::UpdateAI(uint32 diff)
|
|||
}
|
||||
|
||||
if (!IsAIControlled())
|
||||
{
|
||||
if (CharmInfo* charmInfo = me->GetCharmInfo())
|
||||
{
|
||||
if (charmInfo->IsCommandAttack() && mCanAutoAttack)
|
||||
{
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue