diff options
| author | Spp <none@none> | 2010-09-06 15:23:08 +0200 |
|---|---|---|
| committer | Spp <none@none> | 2010-09-06 15:23:08 +0200 |
| commit | cdef980af41b833ee654405a66b921f611fb5080 (patch) | |
| tree | b6dcaf95798c1d9ff8d10706effe3c638bc298d6 /src/server/scripts/Spells | |
| parent | 588092960bf6378b89bf1d82c4dbc9217f0a0ac4 (diff) | |
Core: Fix some warnings
--HG--
branch : trunk
Diffstat (limited to 'src/server/scripts/Spells')
| -rw-r--r-- | src/server/scripts/Spells/spell_item.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp index 8c431f338f0..b9891757e8d 100644 --- a/src/server/scripts/Spells/spell_item.cpp +++ b/src/server/scripts/Spells/spell_item.cpp @@ -541,19 +541,19 @@ public: uint32 spellId = 0; uint32 rand = urand(0, 100); - if (rand >= 0 && rand < 25) // Fireball (25% chance) + if (rand < 25) // Fireball (25% chance) spellId = SPELL_FIREBALL; - else if (rand >= 25 && rand < 50) // Frostball (25% chance) + else if (rand < 50) // Frostball (25% chance) spellId = SPELL_FROSTBOLT; - else if (rand >= 50 && rand < 70) // Chain Lighting (20% chance) + else if (rand < 70) // Chain Lighting (20% chance) spellId = SPELL_CHAIN_LIGHTNING; - else if (rand >= 70 && rand < 80) // Polymorph (10% chance) + else if (rand < 80) // Polymorph (10% chance) { spellId = SPELL_POLYMORPH; if (urand(0, 100) <= 30) // 30% chance to self-cast pTarget = pCaster; } - else if (rand >=80 && rand < 95) // Enveloping Winds (15% chance) + else if (rand < 95) // Enveloping Winds (15% chance) spellId = SPELL_ENVELOPING_WINDS; else // Summon Felhund minion (5% chance) { |
