Include feedback from @bartico6 on a magic number
This commit is contained in:
parent
46617e61d0
commit
cdfb056903
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue