From 90ce9cdd941ce76950a53347d75a95de1e969ecb Mon Sep 17 00:00:00 2001 From: Zack Piispanen Date: Thu, 19 Dec 2013 21:10:05 -0500 Subject: [PATCH] Update boss projectile check list. Superadmin/permissions now ignore this check. --- TShockAPI/Commands.cs | 2 +- TShockAPI/GetDataHandlers.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index a9e15013..72e7ff34 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -1684,7 +1684,7 @@ namespace TShockAPI if (Main.netMode != 1) { NPC.waveKills = 0f; - NPC.waveCount = 1; + NPC.waveCount = wave; string text = "Snow Invasion started at wave: " + wave; if (Main.netMode == 0) { diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index f9027533..fc0cb83b 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -2399,15 +2399,15 @@ namespace TShockAPI } 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."); } 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); } return true;