Fixes targets (#15521)

* Automatic changelog compile [ci skip]

* Update files

Co-authored-by: Changelogs <action@github.com>
This commit is contained in:
SandPoot
2022-02-22 19:50:32 -03:00
committed by GitHub
parent de3ea65587
commit 6c347a9186
2 changed files with 5 additions and 7 deletions
+4 -7
View File
@@ -58,13 +58,10 @@
pinned_target.nullPinnedLoc()
nullPinnedTarget()
handle_density()
if(ishuman(user))
if(!user.get_active_held_item())
user.put_in_hands(pinned_target)
to_chat(user, "<span class='notice'>You take the target out of the stake.</span>")
else
pinned_target.forceMove(user.drop_location())
to_chat(user, "<span class='notice'>You take the target out of the stake.</span>")
pinned_target.forceMove(get_turf(src))
to_chat(user, "<span class='notice'>You take the target out of the stake.</span>")
if(user.can_hold_items())
user.put_in_hands(pinned_target)
/obj/structure/target_stake/bullet_act(obj/item/projectile/P)
if(pinned_target)