mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
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 (CharmInfo* charmInfo = me->GetCharmInfo())
|
||||
{
|
||||
if (charmInfo->IsCommandAttack() && mCanAutoAttack)
|
||||
{
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user