aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTrazom62 <none@none>2010-09-07 20:47:48 +0200
committerTrazom62 <none@none>2010-09-07 20:47:48 +0200
commit0e9d0f6bcb7e01635e34ae3cd4e5e6d5981ed659 (patch)
treedc621aca700ff8910060377b790a24e36e0fbc0a /src
parent2b0bc4c8e177ef7e0b2d2fa7458cfbfd2203d852 (diff)
Core/Script/Item: fix urand range in Six Demon Bag.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_item.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp
index b9891757e8d..81b314db9be 100644
--- a/src/server/scripts/Spells/spell_item.cpp
+++ b/src/server/scripts/Spells/spell_item.cpp
@@ -540,7 +540,7 @@ public:
Unit* pCaster = GetCaster();
uint32 spellId = 0;
- uint32 rand = urand(0, 100);
+ uint32 rand = urand(0, 99);
if (rand < 25) // Fireball (25% chance)
spellId = SPELL_FIREBALL;
else if (rand < 50) // Frostball (25% chance)