mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Core/Script/Item: fix urand range in Six Demon Bag.
--HG-- branch : trunk
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user