From ae3c9654adbc10c4273611e51c9bad9dd9fefef5 Mon Sep 17 00:00:00 2001 From: James Puleo Date: Fri, 2 Dec 2022 13:17:03 -0500 Subject: [PATCH 1/3] Increase whitelisted duration of the Hellfire (`OnFire3`) buff From 5 seconds to 6 seconds, as the Brand of the Inferno will apply this buff for a maximum of 6 seconds. --- TShockAPI/Bouncer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index a9b99377..0367268e 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -400,7 +400,7 @@ namespace TShockAPI }; PlayerAddBuffWhitelist[BuffID.OnFire3] = new BuffLimit { - MaxTicks = 60 * 5, + MaxTicks = 60 * 6, CanBeAddedWithoutHostile = false, CanOnlyBeAppliedToSender = false }; From 88c639c1157e4029127ddf84276ecc13db6e20ee Mon Sep 17 00:00:00 2001 From: James Puleo Date: Fri, 2 Dec 2022 13:18:00 -0500 Subject: [PATCH 2/3] Whitelist the Mighty Wind (`WindPushed`) buff This is applied by sandstorm events. --- TShockAPI/Bouncer.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index 0367268e..3ca61e30 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -428,6 +428,12 @@ namespace TShockAPI CanBeAddedWithoutHostile = true, CanOnlyBeAppliedToSender = true }; + PlayerAddBuffWhitelist[BuffID.WindPushed] = new BuffLimit + { + MaxTicks = 2, + CanBeAddedWithoutHostile = true, + CanOnlyBeAppliedToSender = true + }; #endregion Whitelist } From 0a3b3a1236a8917948a93efe91a2306e172e5116 Mon Sep 17 00:00:00 2001 From: James Puleo Date: Fri, 2 Dec 2022 13:21:12 -0500 Subject: [PATCH 3/3] Update `docs/changelog.md` --- docs/changelog.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/changelog.md b/docs/changelog.md index 72c1d358..85d5209d 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -84,6 +84,8 @@ Use past tense when adding new entries; sign your name off when you add or chang * Improved rejection message and code duplication in `OnPlayerBuff` (@drunderscore) * This will make it so Bouncer rejections regarding `PlayerAddBuff` will now always include the sender index, buff type, receiver index, and time in ticks, allowing much faster triage of buff whitelist issues. * Allowed Digging Molecart and bomb fish to break tiles and place tracks (@sgkoishi) +* Increased whitelisted duration of the Mighty Wind (`WindPushed`) buff (from sandstorms). (@drunderscore) +* Whitelisted the Hellfire (`OnFire3`) buff. (@drunderscore) ## TShock 5.1.3 * Added support for Terraria 1.4.4.9 via OTAPI 3.1.20. (@SignatureBeef)