fix(Core/GroupHandler): Adjust maximum value for rolls. (#22686)

This commit is contained in:
Benjamin Jackson
2025-08-26 20:58:41 -04:00
committed by GitHub
parent de98f42411
commit 2ad40a4d23
4 changed files with 14 additions and 3 deletions

View File

@@ -543,10 +543,8 @@ void WorldSession::HandleRandomRollOpcode(WorldPackets::Misc::RandomRollClient&
maximum = packet.Max;
/** error handling **/
if (minimum > maximum || maximum > 10000) // < 32768 for urand call
{
if (minimum > maximum || maximum > sWorld->getIntConfig(CONFIG_RANDOM_ROLL_MAXIMUM))
return;
}
GetPlayer()->DoRandomRoll(minimum, maximum);
}