Makes incorporeal things properly immune to bonfires and lava

This commit is contained in:
Heroman
2021-07-05 18:05:46 +10:00
parent d439ea8c9d
commit e70eb23dce
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -180,8 +180,9 @@
O.fire_act(null, 1000, 500)
else if(isliving(A) && get_fuel_amount() > 4)
var/mob/living/L = A
L.adjust_fire_stacks(get_fuel_amount() / 4)
L.IgniteMob()
if(!(L.is_incorporeal()))
L.adjust_fire_stacks(get_fuel_amount() / 4)
L.IgniteMob()
/obj/structure/bonfire/update_icon()
cut_overlays()
+1 -1
View File
@@ -95,6 +95,6 @@
// Tells AI mobs to not suicide by pathing into lava if it would hurt them.
/turf/simulated/floor/lava/is_safe_to_enter(mob/living/L)
if(!is_safe() && !L.hovering)
if(!is_safe() && !L.hovering && !(L.is_incorporeal()))
return FALSE
return ..()