diff --git a/build/K4ryuuDamageInfo/K4ryuuDamageInfo.dll b/build/K4ryuuDamageInfo/K4ryuuDamageInfo.dll index 8fe5941..89d2d44 100644 Binary files a/build/K4ryuuDamageInfo/K4ryuuDamageInfo.dll and b/build/K4ryuuDamageInfo/K4ryuuDamageInfo.dll differ diff --git a/build/K4ryuuDamageInfo/K4ryuuDamageInfo.pdb b/build/K4ryuuDamageInfo/K4ryuuDamageInfo.pdb index 9b02c68..eb06284 100644 Binary files a/build/K4ryuuDamageInfo/K4ryuuDamageInfo.pdb and b/build/K4ryuuDamageInfo/K4ryuuDamageInfo.pdb differ diff --git a/src/K4ryuuDamageInfo.cs b/src/K4ryuuDamageInfo.cs index 7f7042e..b91e0ad 100644 --- a/src/K4ryuuDamageInfo.cs +++ b/src/K4ryuuDamageInfo.cs @@ -9,7 +9,7 @@ namespace K4ryuuDamageInfo public class DamageInfoPlugin : BasePlugin { public override string ModuleName => "Damage Info"; - public override string ModuleVersion => "1.1.0"; + public override string ModuleVersion => "1.1.1"; public override string ModuleAuthor => "K4ryuu"; private Dictionary playerDamageData = new Dictionary(); public Dictionary> playerDamageInfo = new Dictionary>(); @@ -23,7 +23,7 @@ public override void Load(bool hotReload) CCSPlayerController attackerController = @event.Attacker; int targetId = @event.Userid.UserId ?? -1; - if (attackerController.IsValid && !attackerController.IsBot) + if (attackerController.IsValid && (@event.DmgHealth > 0 || @event.DmgArmor > 0)) { if (CFG.config.RoundEndPrint) { @@ -117,7 +117,6 @@ internal class DamageData private Dictionary damageInfo = new Dictionary(); private Dictionary lastUpdateTime = new Dictionary(); - public void UpdateDamage(CCSPlayerController attackerController, int targetId, int damageHP, int damageArmor, int Hitgroup) { if (!damageInfo.ContainsKey(targetId))