From 9b2437aa710c9313121602eabfa61c14d8b29cb8 Mon Sep 17 00:00:00 2001 From: Giacomand Date: Mon, 28 Oct 2013 17:29:09 +0000 Subject: [PATCH] * Validates the spray bottle is still on the user. --- code/modules/reagents/reagent_containers/spray.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/reagents/reagent_containers/spray.dm b/code/modules/reagents/reagent_containers/spray.dm index 1734f548ccd..1a26cfcb05a 100644 --- a/code/modules/reagents/reagent_containers/spray.dm +++ b/code/modules/reagents/reagent_containers/spray.dm @@ -88,7 +88,7 @@ if (alert(usr, "Are you sure you want to empty that?", "Empty Bottle:", "Yes", "No") != "Yes") return - if(isturf(usr.loc)) + if(isturf(usr.loc) && src.loc == usr) usr << "You empty \the [src] onto the floor." reagents.reaction(usr.loc) spawn(5) src.reagents.clear_reagents()