From 70ffe3e1f8d56094eaa7c3ab0f5df49112c57408 Mon Sep 17 00:00:00 2001 From: Dax Dupont Date: Mon, 26 Mar 2018 21:22:03 +0200 Subject: [PATCH] Adds sanity check so you don't accidentally pop a fun balloon multiple times (#36720) * Adds sanity check so you don't accidentally pop a fun balloon multiple times. * Fuck it, probably better like this * heck --- code/modules/admin/fun_balloon.dm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/modules/admin/fun_balloon.dm b/code/modules/admin/fun_balloon.dm index 5bc0e27c364..6ce61885905 100644 --- a/code/modules/admin/fun_balloon.dm +++ b/code/modules/admin/fun_balloon.dm @@ -35,10 +35,11 @@ /obj/effect/fun_balloon/attack_ghost(mob/user) if(!user.client || !user.client.holder || popped) return - switch(alert("Pop [src]?","Fun Balloon","Yes","No")) - if("Yes") - effect() - pop() + var/confirmation = alert("Pop [src]?","Fun Balloon","Yes","No") + if(confirmation == "Yes" && !popped) + popped = TRUE + effect() + pop() /obj/effect/fun_balloon/sentience name = "sentience fun balloon"