From 6dcb0099d96f794aca1743517d6685c40ebb2f52 Mon Sep 17 00:00:00 2001 From: Triply Date: Mon, 9 Mar 2009 22:56:49 +0100 Subject: [PATCH] [7433] Fixed death runes counting. Patch provided by Rastikzzz. Thx. Signed-off-by: Triply --- src/game/Spell.cpp | 4 ++-- src/shared/revision_nr.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 742682f81..0e99e9190 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -3354,7 +3354,7 @@ uint8 Spell::CheckRuneCost(uint32 runeCostID) runeCost[i] = src->RuneCost[i]; } - runeCost[RUNE_DEATH] = 0; // calculated later + runeCost[RUNE_DEATH] = MAX_RUNES; // calculated later for(uint32 i = 0; i < MAX_RUNES; ++i) { @@ -3373,7 +3373,7 @@ uint8 Spell::CheckRuneCost(uint32 runeCostID) } } - if(runeCost[RUNE_DEATH] > 0) + if(runeCost[RUNE_DEATH] > MAX_RUNES) return SPELL_FAILED_NO_POWER; // not sure if result code is correct return 0; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index b7514b0de..cf0c8d683 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 "7432" + #define REVISION_NR "7433" #endif // __REVISION_NR_H__