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

This commit is contained in:
MrMelbert
2022-10-19 19:49:27 -05:00
committed by GitHub
parent 58dfac6e8f
commit dbe0842514
+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."))