Core/Misc: Update /roll max cap

This commit is contained in:
Shauren
2022-08-06 14:22:25 +02:00
parent 40c3add02e
commit 240ff8314a
2 changed files with 2 additions and 2 deletions

View File

@@ -28498,7 +28498,7 @@ void Player::SendRaidGroupOnlyMessage(RaidGroupReason reason, int32 delay) const
uint32 Player::DoRandomRoll(uint32 minimum, uint32 maximum)
{
ASSERT(maximum <= 10000);
ASSERT(maximum <= 1000000);
uint32 roll = urand(minimum, maximum);

View File

@@ -432,7 +432,7 @@ void WorldSession::HandleMinimapPingOpcode(WorldPackets::Party::MinimapPingClien
void WorldSession::HandleRandomRollOpcode(WorldPackets::Misc::RandomRollClient& packet)
{
/** error handling **/
if (packet.Min > packet.Max || packet.Max > 10000) // < 32768 for urand call
if (packet.Min > packet.Max || packet.Max > 1000000)
return;
/********************/