mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
FIX telekinesis unable to interact with things (#22881)
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
if(user.stat || !tkMaxRangeCheck(user, src))
|
||||
return
|
||||
new /obj/effect/temp_visual/telekinesis(get_turf(src))
|
||||
user.UnarmedAttack(src,0) // attack_hand, attack_paw, etc
|
||||
user.UnarmedAttack(src, FALSE, list()) // attack_hand, attack_paw, etc
|
||||
add_hiddenprint(user)
|
||||
return
|
||||
|
||||
|
||||
@@ -299,10 +299,6 @@ Class Procs:
|
||||
|
||||
return user.can_interact_with(src) //AIs don't care about petty mortal concerns like needing to be next to a machine to use it, but borgs do care somewhat
|
||||
|
||||
. = ..()
|
||||
if(!.)
|
||||
return FALSE
|
||||
|
||||
if(panel_open && !(interaction_flags_machine & INTERACT_MACHINE_OPEN))
|
||||
return FALSE
|
||||
|
||||
@@ -395,6 +391,10 @@ Class Procs:
|
||||
return FALSE
|
||||
return _try_interact(user, modifiers)
|
||||
|
||||
/obj/machinery/attack_tk(mob/user, modifiers)
|
||||
new /obj/effect/temp_visual/telekinesis(get_turf(src))
|
||||
return attack_hand(user, modifiers)
|
||||
|
||||
/obj/machinery/attack_ai(mob/user, modifiers)
|
||||
if(!(interaction_flags_machine & INTERACT_MACHINE_ALLOW_SILICON) && !IsAdminGhost(user))
|
||||
return FALSE
|
||||
|
||||
Reference in New Issue
Block a user