Core/Misc: Update /roll max cap
Port From (https://github.com/TrinityCore/TrinityCore/commit/240ff8314a8ed8c129a53a5208feeb1a25d514e1)
This commit is contained in:
@@ -6712,7 +6712,7 @@ namespace Game.Entities
|
|||||||
//new
|
//new
|
||||||
public uint DoRandomRoll(uint minimum, uint maximum)
|
public uint DoRandomRoll(uint minimum, uint maximum)
|
||||||
{
|
{
|
||||||
Cypher.Assert(maximum <= 10000);
|
Cypher.Assert(maximum <= 1000000);
|
||||||
|
|
||||||
uint roll = RandomHelper.URand(minimum, maximum);
|
uint roll = RandomHelper.URand(minimum, maximum);
|
||||||
|
|
||||||
|
|||||||
@@ -421,7 +421,7 @@ namespace Game
|
|||||||
[WorldPacketHandler(ClientOpcodes.RandomRoll)]
|
[WorldPacketHandler(ClientOpcodes.RandomRoll)]
|
||||||
void HandleRandomRoll(RandomRollClient packet)
|
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;
|
return;
|
||||||
|
|
||||||
GetPlayer().DoRandomRoll(packet.Min, packet.Max);
|
GetPlayer().DoRandomRoll(packet.Min, packet.Max);
|
||||||
|
|||||||
Reference in New Issue
Block a user