Core/Spells: Implemented SPELL_ATTR5_NOT_AVAILABLE_WHILE_CHARMED

This commit is contained in:
Shauren authored and Ovahlord committed 2022-09-30 02:08:33 +02:00
1 parent 8fa4b57925
commit 4cfd439d34
4 files changed
+11 -2

No files matched your search

+6
View File
@@ -9732,6 +9732,9 @@ void CharmInfo::InitPossessCreateSpells()
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellId);
if (spellInfo)
{
if (spellInfo->HasAttribute(SPELL_ATTR5_NOT_AVAILABLE_WHILE_CHARMED))
continue;
if (spellInfo->IsPassive())
_unit->CastSpell(_unit, spellInfo->Id, true);
else
@@ -9764,6 +9767,9 @@ void CharmInfo::InitCharmCreateSpells()
continue;
}
if (spellInfo->HasAttribute(SPELL_ATTR5_NOT_AVAILABLE_WHILE_CHARMED))
continue;
if (spellInfo->IsPassive())
{
_unit->CastSpell(_unit, spellInfo->Id, true);