Merge pull request #1674 from Giacom/dis_tiny_fix

Validates the spray bottle is still on the user when emptying.
This commit is contained in:
Cheridan
2013-10-29 23:14:05 -07:00
@@ -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 << "<span class='notice'>You empty \the [src] onto the floor.</span>"
reagents.reaction(usr.loc)
spawn(5) src.reagents.clear_reagents()