diff --git a/code/modules/mob/living/simple_animal/hostile/mining/elites/pandora.dm b/code/modules/mob/living/simple_animal/hostile/mining/elites/pandora.dm index 2b7900126a6..4fe89181b20 100644 --- a/code/modules/mob/living/simple_animal/hostile/mining/elites/pandora.dm +++ b/code/modules/mob/living/simple_animal/hostile/mining/elites/pandora.dm @@ -212,26 +212,14 @@ /obj/item/clothing/accessory/necklace/pandora_hope/on_attached(obj/item/clothing/under/S, mob/user) . = ..() - if(isliving(user)) - var/mob/living/M = user + if(isliving(S.loc)) + var/mob/living/M = S.loc M.apply_status_effect(STATUS_EFFECT_HOPE) /obj/item/clothing/accessory/necklace/pandora_hope/on_removed(mob/user) - . = ..() - if(isliving(user)) - var/mob/living/M = user + if(isliving(has_suit.loc)) + var/mob/living/M = has_suit.loc M.remove_status_effect(STATUS_EFFECT_HOPE) - -/obj/item/clothing/accessory/necklace/pandora_hope/attached_unequip() - if(isliving(usr)) - var/mob/living/M = usr - M.remove_status_effect(STATUS_EFFECT_HOPE) - return ..() - -/obj/item/clothing/accessory/necklace/pandora_hope/attached_equip() - if(isliving(usr)) - var/mob/living/M = usr - M.apply_status_effect(STATUS_EFFECT_HOPE) return ..() #undef CHASER_BURST