/obj/effect/proc_holder/spell/targeted/click/chaplain_bless name = "Bless" desc = "Blesses a single person." school = "transmutation" charge_max = 60 clothes_req = FALSE invocation = "none" invocation_type = "none" max_targets = 1 include_user = FALSE allowed_type = /mob/living/carbon/human selection_activated_message = "You prepare a blessing. Click on a target to start blessing." selection_deactivated_message = "The crew will be blessed another time." range = 1 click_radius = -1 // Only precision clicking cooldown_min = 20 action_icon_state = "shield" /obj/effect/proc_holder/spell/targeted/click/chaplain_bless/valid_target(mob/living/carbon/human/target, user) if(!..()) return FALSE return target.mind && target.ckey && !target.stat /obj/effect/proc_holder/spell/targeted/click/chaplain_bless/cast(list/targets, mob/living/user = usr) if(!istype(user)) to_chat(user, "Somehow, you are not a living mob. This should never happen. Report this bug.") revert_cast() return if(!user.mind) to_chat(user, "Somehow, you are mindless. This should never happen. Report this bug.") revert_cast() return if(!user.mind.isholy) to_chat(user, "Somehow, you are not holy enough to use this ability. This should never happen. Report this bug.") revert_cast() return var/mob/living/carbon/human/target = targets[1] spawn(0) // allows cast to complete even if recipient ignores the prompt if(alert(target, "[user] wants to bless you, in the name of [user.p_their()] religion. Accept?", "Accept Blessing?", "Yes", "No") == "Yes") // prevents forced conversions user.visible_message("[user] starts blessing [target] in the name of [SSticker.Bible_deity_name].", "You start blessing [target] in the name of [SSticker.Bible_deity_name].") if(do_after(user, 150, target = target)) user.visible_message("[user] has blessed [target] in the name of [SSticker.Bible_deity_name].", "You have blessed [target] in the name of [SSticker.Bible_deity_name].") if(!target.mind.isblessed) target.mind.isblessed = TRUE user.mind.num_blessed++