From 6a013196c866b6e4aa687c303e40124ecb075333 Mon Sep 17 00:00:00 2001 From: Hayden Redacted <91229275+haydenredacted@users.noreply.github.com> Date: Thu, 4 Jun 2026 19:19:40 -0400 Subject: [PATCH] Reduce the Amount of Blindness Time of Heretic Monster Spells (#32054) * Reduce the Amount of Blindness Time of Heretic Monster Spells * Changed the wrong value, oops * linters fix --- .../heretic/magic/eldritch_blind.dm | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/code/modules/antagonists/heretic/magic/eldritch_blind.dm b/code/modules/antagonists/heretic/magic/eldritch_blind.dm index a84a0be6baf..97d636950b2 100644 --- a/code/modules/antagonists/heretic/magic/eldritch_blind.dm +++ b/code/modules/antagonists/heretic/magic/eldritch_blind.dm @@ -2,7 +2,27 @@ /datum/spell/blind/eldritch name = "Eldritch Blind" - - is_a_heretic_spell = TRUE invocation = "E'E'S" + +/datum/spell/blind/eldritch/create_new_targeting() + var/datum/spell_targeting/click/C = new() + C.selection_type = SPELL_SELECTION_RANGE + C.allowed_type = /mob/living + return C + +/datum/spell/blind/eldritch/cast(list/targets, mob/living/user) + if(!length(targets)) + to_chat(user, SPAN_NOTICE("No target found in range.")) + return + + var/mob/living/target = targets[1] + if(target.can_block_magic(antimagic_flags)) + to_chat(target, SPAN_NOTICE("Your eye itches, but it passes momentarily.")) + to_chat(user, SPAN_NOTICE("The spell had no effect!")) + return FALSE + target.EyeBlurry(40 SECONDS) + target.EyeBlind(5 SECONDS) + + SEND_SOUND(target, sound('sound/magic/blind.ogg')) + return TRUE