mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
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);
|
||||
}
|
||||
|
||||
// triggered cast called from Spell::prepare where it was already checked
|
||||
if (!IsTriggered() || !skipCheck)
|
||||
// skip check if done already (for instant cast spells for example)
|
||||
if (!skipCheck)
|
||||
{
|
||||
SpellCastResult castResult = CheckCast(false);
|
||||
if (castResult != SPELL_CAST_OK)
|
||||
|
||||
Reference in New Issue
Block a user