From 88d07dbdd2ae685019a6678473f3bcad634aa82b Mon Sep 17 00:00:00 2001
From: YPOQ <30683121+YPOQ@users.noreply.github.com>
Date: Mon, 22 Oct 2018 19:19:46 -0600
Subject: [PATCH] Fixes anti-magic not actually protecting against tesla blast
spell
---
code/modules/spells/spell_types/lightning.dm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/code/modules/spells/spell_types/lightning.dm b/code/modules/spells/spell_types/lightning.dm
index 501241c2709..432d2aa4026 100644
--- a/code/modules/spells/spell_types/lightning.dm
+++ b/code/modules/spells/spell_types/lightning.dm
@@ -68,7 +68,7 @@
if(current.anti_magic_check())
playsound(get_turf(current), 'sound/magic/lightningshock.ogg', 50, 1, -1)
current.visible_message("[current] absorbs the spell, remaining unharmed!", "You absorb the spell, remaining unharmed!")
- if(bounces < 1)
+ else if(bounces < 1)
current.electrocute_act(bolt_energy,"Lightning Bolt",safety=1)
playsound(get_turf(current), 'sound/magic/lightningshock.ogg', 50, 1, -1)
else