Refactors scripture quickbind (#21563)

* Refactors scripture quickbind

* =
This commit is contained in:
Joan Lung
2016-11-17 12:28:57 +13:00
committed by oranges
parent d1010a7d53
commit f162d4d84a
8 changed files with 63 additions and 63 deletions
@@ -804,8 +804,8 @@
else
user << "<span class='warning'>That target is out of range!</span>" //too far away
/obj/item/weapon/hierophant_staff/ui_action_click(mob/user, actiontype)
if(actiontype == /datum/action/item_action/toggle_unfriendly_fire) //toggle friendly fire...
/obj/item/weapon/hierophant_staff/ui_action_click(mob/user, action)
if(istype(action, /datum/action/item_action/toggle_unfriendly_fire)) //toggle friendly fire...
friendly_fire_check = !friendly_fire_check
user << "<span class='warning'>You toggle friendly fire [friendly_fire_check ? "off":"on"]!</span>"
return