Skip to content

Commit

Permalink
Spell: Fix TRIGGERED_IGNORE_COSTS implementation causing enchants to …
Browse files Browse the repository at this point in the history
…cost nothing
  • Loading branch information
killerwife committed Feb 18, 2024
1 parent 71030d7 commit f6cf658
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/Spells/Spell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ Spell::Spell(WorldObject* caster, SpellEntry const* info, uint32 triggeredFlags,
m_petCast = (triggeredFlags & TRIGGERED_PET_CAST) != 0;
m_notifyAI = (triggeredFlags & TRIGGERED_NORMAL_COMBAT_CAST) != 0;
m_ignoreGCD = m_IsTriggeredSpell || ((triggeredFlags & TRIGGERED_IGNORE_GCD) != 0);
m_ignoreCosts = m_IsTriggeredSpell || ((triggeredFlags & TRIGGERED_IGNORE_COSTS) != 0);
m_ignoreCosts = ((triggeredFlags & TRIGGERED_IGNORE_COSTS) != 0);
m_ignoreCooldowns = m_IsTriggeredSpell || ((triggeredFlags & TRIGGERED_IGNORE_COOLDOWNS) != 0);
m_ignoreConcurrentCasts = m_IsTriggeredSpell || ((triggeredFlags & TRIGGERED_IGNORE_CURRENT_CASTED_SPELL) != 0) || m_spellInfo->HasAttribute(SPELL_ATTR_EX4_ALLOW_CAST_WHILE_CASTING);
m_ignoreCasterAuraState = m_IsTriggeredSpell || ((triggeredFlags & TRIGGERED_IGNORE_CASTER_AURA_STATE) != 0);
Expand Down Expand Up @@ -5024,7 +5024,7 @@ SpellCastResult Spell::CheckCast(bool strict)
}
}

if (!m_ignoreCosts)
if (!m_ignoreCosts && !m_IsTriggeredSpell)
{
SpellCastResult castResult = CheckPower(strict);
if (castResult != SPELL_CAST_OK)
Expand Down

0 comments on commit f6cf658

Please sign in to comment.