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
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user