diff --git a/code/datums/elements/frozen.dm b/code/datums/elements/frozen.dm index 77699c89e64ec..ca40f9d174a24 100644 --- a/code/datums/elements/frozen.dm +++ b/code/datums/elements/frozen.dm @@ -9,7 +9,7 @@ GLOBAL_LIST_INIT(freon_color_matrix, list("#2E5E69", "#60A2A8", "#A1AFB1", rgb(0 return ELEMENT_INCOMPATIBLE var/obj/target_obj = target - if(target_obj.obj_flags & FREEZE_PROOF) + if(target_obj.resistance_flags & FREEZE_PROOF) return ELEMENT_INCOMPATIBLE if(HAS_TRAIT(target_obj, TRAIT_FROZEN)) diff --git a/code/game/objects/objs.dm b/code/game/objects/objs.dm index 190328ef365a7..ba4698c54b3f5 100644 --- a/code/game/objects/objs.dm +++ b/code/game/objects/objs.dm @@ -372,7 +372,7 @@ GLOBAL_LIST_EMPTY(objects_by_id_tag) /obj/proc/freeze() if(HAS_TRAIT(src, TRAIT_FROZEN)) return FALSE - if(obj_flags & FREEZE_PROOF) + if(resistance_flags & FREEZE_PROOF) return FALSE AddElement(/datum/element/frozen) diff --git a/code/game/turfs/open/_open.dm b/code/game/turfs/open/_open.dm index 8afb3c5ee8dbe..e235fe6f500c6 100644 --- a/code/game/turfs/open/_open.dm +++ b/code/game/turfs/open/_open.dm @@ -196,7 +196,7 @@ /turf/open/proc/freeze_turf() for(var/obj/I in contents) - if(!HAS_TRAIT(I, TRAIT_FROZEN) && !(I.obj_flags & FREEZE_PROOF)) + if(!HAS_TRAIT(I, TRAIT_FROZEN) && !(I.resistance_flags & FREEZE_PROOF)) I.AddElement(/datum/element/frozen) for(var/mob/living/L in contents)