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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user