From bcdebeb39b4147deed5c86fb61459f1a6eab109f Mon Sep 17 00:00:00 2001 From: K4ryuu <104531589+K4ryuu@users.noreply.github.com> Date: Fri, 26 Jan 2024 11:04:15 +0100 Subject: [PATCH] fix: Duplicated print at the chat --- CHANGELOG | 1 + src/K4ryuuDamageInfo.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 16020ed..863a937 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ -- 2024.01.26 - V2.0.1 - fix: Transation bug at console print +- fix: Duplicated print at the chat -- 2024.01.26 - V2.0.0 diff --git a/src/K4ryuuDamageInfo.cs b/src/K4ryuuDamageInfo.cs index f69d14d..ac6b486 100644 --- a/src/K4ryuuDamageInfo.cs +++ b/src/K4ryuuDamageInfo.cs @@ -176,7 +176,7 @@ private HookResult OnRoundEnd(EventRoundEnd @event, GameEventInfo info) foreach (CCSPlayerController target in players) { - if (target is null || !target.IsValid || !target.PlayerPawn.IsValid || target.IsBot || target.IsHLTV) + if (target is null || !target.IsValid || !target.PlayerPawn.IsValid || target.IsBot || target.IsHLTV || !target.PawnIsAlive) continue; DisplayDamageInfo(target);