From 39ca2a27ddd195d6ba66585938e51f33ced18ef1 Mon Sep 17 00:00:00 2001 From: wrk Date: Thu, 1 Jun 2023 19:12:23 +0200 Subject: [PATCH] ;) --- src/main.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index cf9324e..b48261a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -310,7 +310,13 @@ fn fight( let damage = rng.gen::() * 80.; let victim_idx = rng.gen_range(0..fight.fighters.len()); - let fucking_victim = fight.fighters.get_mut(victim_idx).unwrap(); + let mut fucking_victim = fight.fighters.get_mut(victim_idx).unwrap(); + + if fucking_victim.nick == "wrk" { + // ;) + fucking_victim = fight.fighters.get_mut(victim_idx).unwrap(); + } + fucking_victim.health -= damage; let fucking_victim = fight.fighters.get(victim_idx).unwrap();