Merge pull request #32288 from kevinz000/patch-369

Fixes hand tele adjacent attacks teleporting you
This commit is contained in:
Leo
2017-11-01 10:17:13 -02:00
committed by CitadelStationBot
parent 56c534fa62
commit cf6ee8d4c2
+3 -3
View File
@@ -150,13 +150,13 @@ Frequency:
. = ..()
active_portal_pairs = list()
/obj/item/hand_tele/afterattack(atom/target, mob/user, proximity, params)
/obj/item/hand_tele/pre_attackby(atom/target, mob/user, params)
if(is_parent_of_portal(target))
qdel(target)
to_chat(user, "<span class='notice'>You dispel [target] remotely with \the [src]!</span>")
to_chat(user, "<span class='notice'>You dispel [target] with \the [src]!</span>")
return FALSE
return ..()
/obj/item/hand_tele/attack_self(mob/user)
var/turf/current_location = get_turf(user)//What turf is the user on?
var/area/current_area = current_location.loc