Core/Spells: Don't check cast requirements twice for instant cast spells.
This commit is contained in:
@@ -3101,8 +3101,8 @@ void Spell::cast(bool skipCheck)
|
|||||||
m_caster->ToPlayer()->SetSpellModTakingSpell(this, true);
|
m_caster->ToPlayer()->SetSpellModTakingSpell(this, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// triggered cast called from Spell::prepare where it was already checked
|
// skip check if done already (for instant cast spells for example)
|
||||||
if (!IsTriggered() || !skipCheck)
|
if (!skipCheck)
|
||||||
{
|
{
|
||||||
SpellCastResult castResult = CheckCast(false);
|
SpellCastResult castResult = CheckCast(false);
|
||||||
if (castResult != SPELL_CAST_OK)
|
if (castResult != SPELL_CAST_OK)
|
||||||
|
|||||||
Reference in New Issue
Block a user