Core/Spells: Implemented SPELL_ATTR5_NOT_AVAILABLE_WHILE_CHARMED
This commit is contained in:
1 parent
8fa4b57925
commit
4cfd439d34
4 files changed
+11
-2
No files matched your search
@@ -5627,6 +5627,9 @@ SpellCastResult Spell::CheckCast(bool strict, uint32* param1 /*= nullptr*/, uint
|
||||
|
||||
if (Unit* unitCaster = m_caster->ToUnit())
|
||||
{
|
||||
if (m_spellInfo->HasAttribute(SPELL_ATTR5_NOT_AVAILABLE_WHILE_CHARMED) && unitCaster->IsCharmed())
|
||||
return SPELL_FAILED_CHARMED;
|
||||
|
||||
// only check at first call, Stealth auras are already removed at second call
|
||||
// for now, ignore triggered spells
|
||||
if (strict && !(_triggeredCastFlags & TRIGGERED_IGNORE_SHAPESHIFT))
|
||||
|
||||
Reference in new issue
Block a user