Skip to content

Commit

Permalink
Fix gungame slay bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Aug 8, 2024
1 parent 1e704b5 commit b49265e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/Jailbreak.SpecialDay/SpecialDays/GunGameDay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private HookResult OnDeath(EventPlayerDeath @event, GameEventInfo info) {
int playerIndex;
if (!progressions.TryGetValue(player.Slot, out playerIndex))
playerIndex = 0;
if (attacker == null || !attacker.IsValid) {
if (attacker == null || !attacker.IsValid || attacker.Slot == player.Slot) {
if (playerIndex <= 0) return HookResult.Continue;
playerIndex--;
msg.DemotedDueToSuicide.ToChat(player);
Expand Down

0 comments on commit b49265e

Please sign in to comment.