Check projectile damage

Zidomod loves 99999999 damage
This commit is contained in:
Deathmax 2011-12-18 09:26:13 +08:00
parent f4c16e3301
commit 6068eaac5f

View file

@ -630,6 +630,12 @@ namespace TShockAPI
return true;
}
if (dmg > 400) // random number, if false positives, increase
{
TShock.Utils.HandleCheater(args.Player, TShock.Config.ProjectileAbuseReason);
return true;
}
if (type == 23)
{
if (velx == 0f && vely == 0f && dmg == 99)