mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7433] Fixed death runes counting.
Patch provided by Rastikzzz. Thx. Signed-off-by: Triply <triply@getmangos.com>
This commit is contained in:
parent
aebcf212dc
commit
6dcb0099d9
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue