Fix plants hurting user when using telekinesis (#65759)

Fixes #65454

Using telekinesis with harmful plants won't harm them anymore since they aren't in physical contact.
This commit is contained in:
Tim
2022-03-30 13:27:27 +01:00
committed by GitHub
parent a85d7c6974
commit 7fd605fa7d
+4
View File
@@ -40,6 +40,7 @@
if(plant_safety_check(source, user))
return
SEND_SIGNAL(source, COMSIG_PLANT_ON_BACKFIRE, user)
if(cancel_action)
return COMPONENT_CANCEL_ATTACK_CHAIN
@@ -89,6 +90,9 @@
if(!istype(user))
return TRUE
if(istype(source, /obj/item/tk_grab)) // since we aren't actually touching the plant
return TRUE
if(HAS_TRAIT(user, TRAIT_PLANT_SAFE))
return TRUE