From cdfb05690304d7b7df4c25bcd72ea35b19d5ff42 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 9 Dec 2017 01:31:40 -0700 Subject: [PATCH] Include feedback from @bartico6 on a magic number --- TShockAPI/Bouncer.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index 3e16c10a..4a4df270 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -655,6 +655,8 @@ namespace TShockAPI return; } + // Why 0.2? + // @bartico6: Because heal other player only happens when you are using the spectre armor with the hood, and the healing you can do with that is 20% of your damage. if (amount > TShock.Config.MaxDamage * 0.2) { args.Player.Disable("HealOtherPlayer cheat attempt!", DisableFlags.WriteToLogAndConsole);