Skip to content

Commit

Permalink
fix: Crash from bot's damage
Browse files Browse the repository at this point in the history
  • Loading branch information
K4ryuu committed Nov 12, 2023
1 parent 9819072 commit 9f3199e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/K4ryuuDamageInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<CCSPlayerController, DamageData> playerDamageData = new Dictionary<CCSPlayerController, DamageData>();
public Dictionary<int, Dictionary<int, DamagePlayerInfo>> playerDamageInfo = new Dictionary<int, Dictionary<int, DamagePlayerInfo>>();
Expand All @@ -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)
Expand Down

0 comments on commit 9f3199e

Please sign in to comment.