Merge pull request #10898 from Heroman3003/incorporeal-fires

Makes incorporeal things properly immune to bonfires and lava (and tram and elevator...)
This commit is contained in:
Aronai Sieyes
2021-07-05 16:24:54 -04:00
committed by Chompstation Bot
parent b40f14fc6b
commit e9cb44d9ca
4 changed files with 8 additions and 7 deletions

View File

@@ -192,12 +192,12 @@
for(var/turf/T in destination)
for(var/atom/movable/AM in T)
if(istype(AM, /mob/living))
if(istype(AM, /mob/living) && !(AM.is_incorporeal()))
var/mob/living/M = AM
M.gib()
else if(istype(AM, /mob/zshadow))
AM.Destroy() //prevent deleting shadow without deleting shadow's shadows
else if(AM.simulated && !(istype(AM, /mob/observer)))
else if(AM.simulated && !(istype(AM, /mob/observer)) && !(AM.is_incorporeal()))
qdel(AM)
origin.move_contents_to(destination)