0 Mana is technically allowed due to older characters.

This commit is contained in:
Zidonuke Ghost 2013-10-09 06:46:43 -04:00
parent a6b46a2748
commit 8f1d88abe7

View file

@ -1348,7 +1348,7 @@ namespace TShockAPI
if (args.Player.FirstMaxMP == 0)
args.Player.FirstMaxMP = max;
if (cur < 0 || cur > 400 || max < 20 || max > 200) //Abnormal values have the potential to cause infinite loops in the server.
if (cur < 0 || cur > 400 || max < 0 || max > 200) //Abnormal values have the potential to cause infinite loops in the server.
{
TShock.Utils.ForceKick(args.Player, "Crash Exploit Attempt", true);
return false;