/obj/effect/proc_holder/spell/wizard/targeted/horsemask name = "Curse of the Horseman" desc = "This spell triggers a curse on a target, causing them to wield an unremovable horse head mask. They will speak like a horse! Any masks they are wearing will be disintegrated. This spell does not require robes." school = "transmutation" charge_type = "recharge" charge_max = 150 charge_counter = 0 clothes_req = 0 stat_allowed = 0 invocation = "KN'A FTAGHU, PUCK 'BTHNK!" invocation_type = "shout" range = 7 cooldown_min = 30 //30 deciseconds reduction per rank selection_type = "range" var/list/compatible_mobs = list(/mob/living/carbon/human, /mob/living/carbon/monkey) icon_power_button = "spell_horse" /obj/effect/proc_holder/spell/wizard/targeted/horsemask/cast(list/targets, mob/user = usr) if(!targets.len) user << "No target found in range." return var/mob/living/carbon/target = targets[1] if(!(target.type in compatible_mobs)) user << "It'd be stupid to curse [target] with a horse's head!" return if(!(target in oview(range)))//If they are not in overview after selection. user << "They are too far away!" return var/obj/item/clothing/mask/horsehead/magichead = new /obj/item/clothing/mask/horsehead magichead.canremove = 0 //curses! magichead.flags_inv = null //so you can still see their face magichead.voicechange = 1 //NEEEEIIGHH target.visible_message( "[target]'s face lights up in fire, and after the event a horse's head takes its place!", \ "Your face burns up, and shortly after the fire you realise you have the face of a horse!") target.drop_from_inventory(target.wear_mask) target.equip_to_slot_if_possible(magichead, slot_wear_mask, 1, 1) flick("e_flash", target.flash)