[7433] Fixed death runes counting. Patch provided by Rastikzzz.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-09 18:14:38 -06:00
parent b332caa1b5
commit bb8dedb581
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7432"
#define REVISION_NR "7433"
#endif // __REVISION_NR_H__