mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Misc: Update /roll max cap
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
/********************/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user