Core/Creatures: Allow disabling melee attacks for all creatures, not just the ones using SAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/d26d38075cdb56dcef77f05276a360e717cc5032)
This commit is contained in:
@@ -615,10 +615,7 @@ namespace Game.AI
|
||||
}
|
||||
case SmartActions.AutoAttack:
|
||||
{
|
||||
if (!IsSmart())
|
||||
break;
|
||||
|
||||
((SmartAI)_me.GetAI()).SetAutoAttack(e.Action.autoAttack.attack != 0);
|
||||
_me.SetCanMelee(e.Action.autoAttack.attack != 0);
|
||||
Log.outDebug(LogFilter.ScriptsAi, "SmartScript.ProcessAction. SMART_ACTION_AUTO_ATTACK: Creature: {0} bool on = {1}",
|
||||
_me.GetGUID().ToString(), e.Action.autoAttack.attack);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user