From 9f3199eace197ff0ae27bf0d4d6da111ecb8a3f6 Mon Sep 17 00:00:00 2001 From: K4ryuu <104531589+K4ryuu@users.noreply.github.com> Date: Sun, 12 Nov 2023 01:52:26 +0100 Subject: [PATCH] fix: Crash from bot's damage --- src/K4ryuuDamageInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/K4ryuuDamageInfo.cs b/src/K4ryuuDamageInfo.cs index bf21677..fa512c6 100644 --- a/src/K4ryuuDamageInfo.cs +++ b/src/K4ryuuDamageInfo.cs @@ -8,7 +8,7 @@ namespace K4ryuuDamageInfo public class DamageInfoPlugin : BasePlugin { public override string ModuleName => "Damage Info"; - public override string ModuleVersion => "1.3.1"; + public override string ModuleVersion => "1.3.2"; public override string ModuleAuthor => "K4ryuu"; private readonly Dictionary playerDamageData = new Dictionary(); public Dictionary> playerDamageInfo = new Dictionary>(); @@ -21,7 +21,7 @@ public override void Load(bool hotReload) { CCSPlayerController attacker = @event.Attacker; - if (!attacker.IsValid || (attacker.IsBot && !(@event.DmgHealth > 0 || @event.DmgArmor > 0))) + if (!attacker.IsValid || attacker.IsBot && !(@event.DmgHealth > 0 || @event.DmgArmor > 0)) return HookResult.Continue; if (@event.Userid.TeamNum != attacker.TeamNum || CFG.config.FFAMode)