From e7589715a8b63298a5cb70562711aee7ab1455ea Mon Sep 17 00:00:00 2001 From: Ghom <42542238+Ghommie@users.noreply.github.com> Date: Sat, 1 Feb 2020 05:13:29 +0100 Subject: [PATCH] Fixing chap armaments beacon. --- code/game/objects/items/holy_weapons.dm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/game/objects/items/holy_weapons.dm b/code/game/objects/items/holy_weapons.dm index 5367f3461c..45abd4fb49 100644 --- a/code/game/objects/items/holy_weapons.dm +++ b/code/game/objects/items/holy_weapons.dm @@ -72,20 +72,21 @@ display_names += list(initial(A.name) = A) var/choice = input(M,"What holy armor kit would you like to order?","Holy Armor Theme") as null|anything in display_names - if(QDELETED(src) || !choice || M.stat || !in_range(M, src) || M.restrained() || !M.canmove || GLOB.holy_armor_type) + var/turf/T = get_turf(M) + if(!T || QDELETED(src) || !choice || M.stat || !in_range(M, src) || M.restrained() || !M.canmove || GLOB.holy_armor_type) return var/index = display_names.Find(choice) var/A = holy_armor_list[index] GLOB.holy_armor_type = A - var/holy_armor_box = new A + var/holy_armor_box = new A(T) SSblackbox.record_feedback("tally", "chaplain_armor", 1, "[choice]") if(holy_armor_box) qdel(src) - M.put_in_active_hand(holy_armor_box)///YOU COMPILED + M.put_in_hands(holy_armor_box) /obj/item/storage/box/holy name = "Templar Kit"