Check projectile damage
Zidomod loves 99999999 damage
This commit is contained in:
parent
f4c16e3301
commit
6068eaac5f
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue