From ad302ffa17588a82afbc83d0ad096ef9d9999519 Mon Sep 17 00:00:00 2001 From: ViktorKoL <44502667+ViktorKoL@users.noreply.github.com> Date: Wed, 14 Feb 2024 01:02:35 +0100 Subject: [PATCH] Partial fix of heretic shapechanges (#81434) ## About The Pull Request Fixes #79713 and partially #80525 - heretics should no longer regain their spells improperly when coming back from a shapeshift. Note: heretics losing their living heart when shapeshifting is an unrelated issue that I wanted to solve in this same PR originally, but it has proven to be more complicated than anticipated. So only spell fix for now. ## Why It's Good For The Game I see bug I kill it. ## Changelog :cl: fix: heretics no longer lose their spells when returning from a shapeshift /:cl: --- code/modules/antagonists/heretic/heretic_knowledge.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/antagonists/heretic/heretic_knowledge.dm b/code/modules/antagonists/heretic/heretic_knowledge.dm index 3eca4f7eda6c..ee973a03e061 100644 --- a/code/modules/antagonists/heretic/heretic_knowledge.dm +++ b/code/modules/antagonists/heretic/heretic_knowledge.dm @@ -215,7 +215,8 @@ /datum/heretic_knowledge/spell/on_lose(mob/user, datum/antagonist/heretic/our_heretic) var/datum/action/cooldown/spell/created_spell = created_spell_ref?.resolve() - created_spell?.Remove(user) + if(created_spell?.owner == user) + created_spell.Remove(user) /** * A knowledge subtype for knowledge that can only