mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Spells: Updated silence flags for 9.0 and rename unit flag to its new meaning
This commit is contained in:
@@ -309,7 +309,7 @@ SpellInfo const* ScriptedAI::SelectSpell(Unit* target, uint32 school, uint32 mec
|
||||
return nullptr;
|
||||
|
||||
// Silenced so we can't cast
|
||||
if (me->HasUnitFlag(UNIT_FLAG_SILENCED))
|
||||
if (me->IsSilenced(school ? SpellSchoolMask(school) : SPELL_SCHOOL_MASK_MAGIC))
|
||||
return nullptr;
|
||||
|
||||
// Using the extended script system we first create a list of viable spells
|
||||
|
||||
Reference in New Issue
Block a user