fixes SM crystals being able to delete containment fields (#24503)

* adds a check for containtment field

* Aylong's review

Co-authored-by: Aylong <69762909+AyIong@users.noreply.github.com>

---------

Co-authored-by: Aylong <69762909+AyIong@users.noreply.github.com>
This commit is contained in:
Kano
2024-03-10 21:22:28 +03:00
committed by GitHub
parent 31ddb3dd18
commit d73f7f3361
@@ -854,7 +854,7 @@
user.dust()
if(power_changes)
matter_power += 200
else if(istype(AM, /obj/singularity))
else if(istype(AM, /obj/singularity) || istype(AM, /obj/machinery/field/containment))
return
else if(isobj(AM))
if(!iseffect(AM))