Update boss projectile check list. Superadmin/permissions now ignore this check.

This commit is contained in:
Zack Piispanen 2013-12-19 21:10:05 -05:00
parent 2dc99c2d8c
commit 90ce9cdd94
2 changed files with 4 additions and 4 deletions

View file

@ -1684,7 +1684,7 @@ namespace TShockAPI
if (Main.netMode != 1) if (Main.netMode != 1)
{ {
NPC.waveKills = 0f; NPC.waveKills = 0f;
NPC.waveCount = 1; NPC.waveCount = wave;
string text = "Snow Invasion started at wave: " + wave; string text = "Snow Invasion started at wave: " + wave;
if (Main.netMode == 0) if (Main.netMode == 0)
{ {

View file

@ -2399,15 +2399,15 @@ namespace TShockAPI
} }
bool hasPermission = !TShock.CheckProjectilePermission(args.Player, index, type); bool hasPermission = !TShock.CheckProjectilePermission(args.Player, index, type);
if (!TShock.Config.IgnoreProjUpdate && !hasPermission) if (!TShock.Config.IgnoreProjUpdate && !hasPermission && !args.Player.Group.HasPermission(Permissions.ignoreprojectiledetection))
{ {
if (type == 100 || type == 164 || type == 261 || (type > 289 && type < 298) || (type >= 325 && type <= 328)) if (type == 100 || type == 164 || type == 180 || type == 261 || (type > 289 && type < 298) || (type >= 325 && type <= 328) || (type >= 345 && type <= 352))
{ {
Log.Debug("Certain projectiles have been ignored for cheat detection."); Log.Debug("Certain projectiles have been ignored for cheat detection.");
} }
else else
{ {
args.Player.Disable("Does not have projectile permission to update projectile."); args.Player.Disable(String.Format("Does not have projectile permission to update projectile. ({0})", type));
args.Player.RemoveProjectile(ident, owner); args.Player.RemoveProjectile(ident, owner);
} }
return true; return true;