diff options
author | megamage <none@none> | 2009-03-09 18:14:38 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-09 18:14:38 -0600 |
commit | bb8dedb5817898c38a999178d4a4c64d01b62b9a (patch) | |
tree | a688866689a0b7e8fb4e86234afd1f69808482ba /src | |
parent | b332caa1b5e574c99119d88e405b6a40ea57ae55 (diff) |
[7433] Fixed death runes counting. Patch provided by Rastikzzz.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Spell.cpp | 4 | ||||
-rw-r--r-- | 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 2cba7f6ef10..6c04104d619 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -3306,7 +3306,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) { @@ -3325,7 +3325,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 b7514b0dea6..cf0c8d68341 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__ |