Core/Spells: Updated silence flags for 9.0 and rename unit flag to its new meaning

Port From (https://github.com/TrinityCore/TrinityCore/commit/3400c5a52c8ea35e56d57326f904dc0127c33048)
This commit is contained in:
hondacrx
2023-03-13 02:36:50 -04:00
parent 1e8a62fb26
commit cd249ac67a
6 changed files with 19 additions and 10 deletions
+1 -1
View File
@@ -258,7 +258,7 @@ namespace Game.AI
return null;
//Silenced so we can't cast
if (me.HasUnitFlag(UnitFlags.Silenced))
if (me.IsSilenced(school != 0 ? school : SpellSchoolMask.Magic))
return null;
//Using the extended script system we first create a list of viable spells