Core/Auras: Renamed a bunch of unknown or changed spell aura types and implemented some of them

This commit is contained in:
Shauren
2021-02-03 19:25:30 +01:00
parent 23144d0665
commit d697882dfb
6 changed files with 60 additions and 45 deletions

View File

@@ -5172,9 +5172,12 @@ SpellCastResult Spell::CheckCast(bool strict, uint32* param1 /*= nullptr*/, uint
// check spell focus object
if (m_spellInfo->RequiresSpellFocus)
{
focusObject = SearchSpellFocus();
if (!focusObject)
return SPELL_FAILED_REQUIRES_SPELL_FOCUS;
if (!m_caster->HasAuraTypeWithMiscvalue(SPELL_AURA_PROVIDE_SPELL_FOCUS, m_spellInfo->RequiresSpellFocus))
{
focusObject = SearchSpellFocus();
if (!focusObject)
return SPELL_FAILED_REQUIRES_SPELL_FOCUS;
}
}
SpellCastResult castResult = SPELL_CAST_OK;