[MIRROR] Fixes runtime with eye of god on destroy [MDB IGNORE] (#17017)

* Fixes runtime with eye of god on destroy (#70636)

* Fixes runtime with eye of god on destroy

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-10-20 00:00:01 -04:00
committed by GitHub
co-authored by MrMelbert
parent ba744a0e0d
commit 4b4b4b4971
+3 -1
View File
@@ -764,7 +764,9 @@
// Behead someone, their "glasses" drop on the floor
// and thus, the god eye should no longer be sticky
REMOVE_TRAIT(src, TRAIT_NODROP, EYE_OF_GOD_TRAIT)
scan_ability.Remove(user)
// And remove the scan ability, note that if we're being called from Destroy
// that this may already be nulled and removed
scan_ability?.Remove(user)
/obj/item/clothing/glasses/godeye/proc/pain(mob/living/victim)
to_chat(victim, span_userdanger("You experience blinding pain, as [src] burrows into your skull."))