From ebc217ce2a7c9cc51e9c5edaf9f55aac5e39e597 Mon Sep 17 00:00:00 2001 From: catvayor Date: Tue, 10 Sep 2024 15:11:55 +0200 Subject: [PATCH] tracker can't use bonus --- src/track.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/track.rs b/src/track.rs index 4b35d6c..9cc6004 100644 --- a/src/track.rs +++ b/src/track.rs @@ -129,10 +129,11 @@ pub async fn activate_invisibility( if let Conscrit { ref mut invisible, ref mut invisibility_codes, + captured, .. } = tracked.state { - if *invisibility_codes > 0 { + if *invisibility_codes > 0 && !captured { *invisibility_codes -= 1; *invisible = true; state_update(&tracked, &evt_queues, &admin_queue); @@ -180,10 +181,11 @@ pub async fn activate_blur( if let Conscrit { ref mut blurred, ref mut blur_codes, + captured, .. } = tracked.state { - if *blur_codes > 0 { + if *blur_codes > 0 && !captured { *blur_codes -= 1; *blurred = true; state_update(&tracked, &evt_queues, &admin_queue);