Skip to content

Commit

Permalink
Triggered spells do not consume power - missed part
Browse files Browse the repository at this point in the history
  • Loading branch information
Olion17 authored and billy1arm committed Jul 29, 2017
1 parent 12072ef commit 4596e81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/game/WorldHandlers/Spell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5734,6 +5734,10 @@ uint32 Spell::CalculatePowerCost(SpellEntry const* spellInfo, Unit* caster, Spel

SpellCastResult Spell::CheckPower()
{
// triggered spell use no power
if (m_IsTriggeredSpell)
return SPELL_CAST_OK;

// item cast not used power
if (m_CastItem)
{ return SPELL_CAST_OK; }
Expand Down

0 comments on commit 4596e81

Please sign in to comment.