Core/Spells: Implemented SPELL_ATTR9_IGNORE_SCHOOL_LOCKOUT
Port From (https://github.com/TrinityCore/TrinityCore/commit/0b8eed2d547acc0ba115198cb306c4f9127af807)
This commit is contained in:
@@ -211,7 +211,7 @@ namespace Game.Spells
|
||||
|
||||
public bool IsReady(SpellInfo spellInfo, uint itemId = 0)
|
||||
{
|
||||
if (spellInfo.PreventionType.HasAnyFlag(SpellPreventionType.Silence))
|
||||
if (!spellInfo.HasAttribute(SpellAttr9.IgnoreSchoolLockout) && spellInfo.PreventionType.HasFlag(SpellPreventionType.Silence))
|
||||
if (IsSchoolLocked(spellInfo.GetSchoolMask()))
|
||||
return false;
|
||||
|
||||
@@ -741,6 +741,9 @@ namespace Game.Spells
|
||||
if (!spellInfo.PreventionType.HasAnyFlag(SpellPreventionType.Silence))
|
||||
continue;
|
||||
|
||||
if (spellInfo.HasAttribute(SpellAttr9.IgnoreSchoolLockout))
|
||||
continue;
|
||||
|
||||
if ((schoolMask & spellInfo.GetSchoolMask()) == 0)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user