From 8d1c6c9bcaae0639392694d1c57f033c19f4d1b6 Mon Sep 17 00:00:00 2001 From: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Date: Fri, 14 May 2021 18:37:34 -0700 Subject: [PATCH] Fixes a ci error caused by adding an element to something that'd being deleted (#59108) So that's why mythril coins kept harddeleting. Man I'm glad I added an error on adding elements to qdeleted objects. --- code/datums/components/fantasy/prefixes.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/components/fantasy/prefixes.dm b/code/datums/components/fantasy/prefixes.dm index 19ca9ae9c61..f7f3f3aaa70 100644 --- a/code/datums/components/fantasy/prefixes.dm +++ b/code/datums/components/fantasy/prefixes.dm @@ -100,7 +100,7 @@ /datum/fantasy_affix/ugly/remove(datum/component/fantasy/comp) var/obj/item/master = comp.parent - master.AddElement(/datum/element/beauty, min(comp.quality, -1) * 250) + master.RemoveElement(/datum/element/beauty, min(comp.quality, -1) * 250) /datum/fantasy_affix/venomous name = "-laced (picked from small pool of toxins)"