Core/Misc: Update /roll max cap

Port From (https://github.com/TrinityCore/TrinityCore/commit/240ff8314a8ed8c129a53a5208feeb1a25d514e1)
This commit is contained in:
hondacrx
2022-08-06 12:19:45 -04:00
parent 544607f794
commit a1a48604e8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -6712,7 +6712,7 @@ namespace Game.Entities
//new
public uint DoRandomRoll(uint minimum, uint maximum)
{
Cypher.Assert(maximum <= 10000);
Cypher.Assert(maximum <= 1000000);
uint roll = RandomHelper.URand(minimum, maximum);
+1 -1
View File
@@ -421,7 +421,7 @@ namespace Game
[WorldPacketHandler(ClientOpcodes.RandomRoll)]
void HandleRandomRoll(RandomRollClient packet)
{
if (packet.Min > packet.Max || packet.Max > 10000) // < 32768 for urand call
if (packet.Min > packet.Max || packet.Max > 1000000) // < 32768 for urand call
return;
GetPlayer().DoRandomRoll(packet.Min, packet.Max);