mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 22:47:59 +01:00
Fixes getting TK abilities when you shouldn't (#16300)
* fix * oops Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> * review * oops Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
@@ -578,7 +578,7 @@
|
||||
|
||||
if(prot > 0 || HAS_TRAIT(user, TRAIT_RESISTHEAT) || HAS_TRAIT(user, TRAIT_RESISTHEATHANDS))
|
||||
to_chat(user, "<span class='notice'>You remove the light [fitting]</span>")
|
||||
else if(user.dna?.GetSEState(GLOB.teleblock))
|
||||
else if(HAS_TRAIT(user, TRAIT_TELEKINESIS))
|
||||
to_chat(user, "<span class='notice'>You telekinetically remove the light [fitting].</span>")
|
||||
else
|
||||
if(user.a_intent == INTENT_DISARM || user.a_intent == INTENT_GRAB)
|
||||
|
||||
@@ -113,6 +113,6 @@
|
||||
return STATUS_CLOSE // Otherwise, we got nothing.
|
||||
|
||||
/mob/living/carbon/human/shared_living_ui_distance(atom/movable/src_object)
|
||||
if(dna.GetSEState(GLOB.teleblock) && (get_dist(src, src_object) <= 2))
|
||||
if(HAS_TRAIT(src, TRAIT_TELEKINESIS) && (get_dist(src, src_object) <= 2))
|
||||
return STATUS_INTERACTIVE
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user