This commit is contained in:
wrk 2023-06-01 19:12:23 +02:00
parent 4a5422b1a1
commit 39ca2a27dd

View File

@ -310,7 +310,13 @@ fn fight(
let damage = rng.gen::<f32>() * 80.; let damage = rng.gen::<f32>() * 80.;
let victim_idx = rng.gen_range(0..fight.fighters.len()); 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; fucking_victim.health -= damage;
let fucking_victim = fight.fighters.get(victim_idx).unwrap(); let fucking_victim = fight.fighters.get(victim_idx).unwrap();