From a202347079b2440ee6e14ce0bfeb1a7892388b6c Mon Sep 17 00:00:00 2001 From: Ambal Date: Fri, 25 Sep 2009 14:28:43 +0300 Subject: [PATCH] [8529] check rune cost only if spell has PowerType == POWER_RUNE. Patch provided by yavi. Signed-off-by: Ambal --- src/game/Spell.cpp | 10 +++++++--- src/shared/revision_nr.h | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index e9d7f02c7..f1e4896ba 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -5091,9 +5091,13 @@ SpellCastResult Spell::CheckPower() 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); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 5a35397de..9cc528464 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8528" + #define REVISION_NR "8529" #endif // __REVISION_NR_H__