Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
LudwigVonChesterfield authored May 6, 2021
1 parent 9927139 commit e8770a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/machinery/Sleeper.dm
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
else if(href_list["togglefilter"])
toggle_filter()
else if(occupant && occupant.stat != DEAD && is_operational())
if(href_list["inject"] == "inaprovaline" || occupant.health > min_health)
if(href_list["inject"] == "inaprovaline" || (occupant.health > min_health && (href_list["inject"] in available_chems)))
inject_chem(usr, href_list["inject"])
else
to_chat(usr, "<span class='notice'>ERROR: Subject is not in stable condition for auto-injection.</span>")
Expand Down

0 comments on commit e8770a3

Please sign in to comment.