Core/Spells: Restore serverside spells fuinctionality

Port From (https://github.com/TrinityCore/TrinityCore/commit/71112d4d169ef192f8c3c9eb1303bdd880336eaa)
This commit is contained in:
hondacrx
2021-03-15 16:29:10 -04:00
parent cee1fbe0d2
commit 98088d1d35
6 changed files with 4762 additions and 41 deletions
+1 -1
View File
@@ -4570,7 +4570,7 @@ namespace Game.Spells
{
if (m_spellInfo.CasterAuraState != 0 && !m_caster.HasAuraState(m_spellInfo.CasterAuraState, m_spellInfo, m_caster))
return SpellCastResult.CasterAurastate;
if (m_spellInfo.CasterAuraStateNot != 0 && m_caster.HasAuraState(m_spellInfo.CasterAuraStateNot, m_spellInfo, m_caster))
if (m_spellInfo.ExcludeCasterAuraState != 0 && m_caster.HasAuraState(m_spellInfo.ExcludeCasterAuraState, m_spellInfo, m_caster))
return SpellCastResult.CasterAurastate;
// Note: spell 62473 requres casterAuraSpell = triggering spell