aboutsummaryrefslogtreecommitdiff
path: root/src/game/Spell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Spell.cpp')
-rw-r--r--src/game/Spell.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 31348dedda9..5301eb4069b 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -5493,10 +5493,14 @@ SpellCastResult Spell::CheckPower()
sLog.outError("Spell::CheckPower: Unknown power type '%d'", m_spellInfo->powerType);
return SPELL_FAILED_UNKNOWN;
}
-
- SpellCastResult failReason = CheckRuneCost(m_spellInfo->runeCostID);
- if(failReason != SPELL_CAST_OK)
- return failReason;
+
+ //check rune cost only if a spell has PowerType == POWER_RUNE
+ if(m_spellInfo->powerType == POWER_RUNE)
+ {
+ SpellCastResult failReason = CheckRuneCost(m_spellInfo->runeCostID);
+ if(failReason != SPELL_CAST_OK)
+ return failReason;
+ }
// Check power amount
Powers powerType = Powers(m_spellInfo->powerType);