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:
hondacrx
2023-03-14 04:34:51 -04:00
parent 40898d4b9f
commit d0b7bcb2fe
7 changed files with 21 additions and 18 deletions
+2 -2
View File
@@ -1295,9 +1295,9 @@ namespace Game.Scripting
return ScriptMap.Empty();
}
public List<TValue> GetStorage()
public ICollection<TValue> GetStorage()
{
return ScriptMap.Values.ToList();
return ScriptMap.Values;
}
public void Unload()