Disallow effects from being scanned by the chameleon projector (#38017)

* henk

* iseffect
This commit is contained in:
vuonojenmustaturska
2018-05-25 15:36:56 +03:00
committed by letterjay
parent cc088d9113
commit 1d1dc1aca8
9 changed files with 19 additions and 16 deletions

View File

@@ -48,7 +48,7 @@
//must succeed in most cases
/datum/teleport/proc/setTeleatom(atom/movable/ateleatom)
if(istype(ateleatom, /obj/effect) && !istype(ateleatom, /obj/effect/dummy/chameleon))
if(iseffect(ateleatom) && !istype(ateleatom, /obj/effect/dummy/chameleon))
qdel(ateleatom)
return 0
if(istype(ateleatom))