requested changes

This commit is contained in:
ancientpower
2020-02-04 16:58:24 -06:00
parent 0d6ffbc432
commit a85f05a628
4 changed files with 68 additions and 61 deletions
+8
View File
@@ -756,3 +756,11 @@
target.layer = old_layer
target.plane = old_plane
current_button.appearance_cache = target.appearance
/proc/get_action_of_type(mob/M, var/action_type)
if(!M.actions || !ispath(action_type, /datum/action))
return
for(var/datum/action/A in M.actions)
if(istype(A, action_type))
return A
return