Allows a 0 XP rate

For those who want to block their XP progression easily.
This commit is contained in:
Barbz
2018-07-01 20:04:31 +02:00
committed by GitHub
parent ba66f38426
commit 327d5ab6d6

View File

@@ -80,7 +80,7 @@ public:
return false;
uint32 rate = (uint32)atol(args);
if (rate == 0 || rate > MaxRate)
if (rate > MaxRate)
return false;
me->CustomData.GetDefault<PlayerXpRate>("Individual_XP")->XPRate = rate;