Cultist stun rune fix (#7446)

This commit is contained in:
synystersparx
2019-11-21 22:04:17 +01:00
committed by Werner
parent 012efd85ab
commit 8d15f7ea5d
2 changed files with 15 additions and 4 deletions
+9 -4
View File
@@ -1028,26 +1028,31 @@ var/list/sacrificed = list()
////////// Rune 24 (counting burningblood, which kinda doesnt work yet.)
/obj/effect/rune/proc/runestun(var/mob/living/user, var/mob/living/T as mob)
if(istype(src,/obj/effect/rune)) ///When invoked as rune, flash and stun everyone around.
if(istype(src,/obj/effect/rune)) ///When invoked as rune, flash and briefly stun everyone around.
user.say("Fuu ma[pick("'","`")]jin!")
for(var/mob/living/L in viewers(src))
if(iscultist(L))
continue
if(iscarbon(L))
var/mob/living/carbon/C = L
flick("e_flash", C.flash)
if(C.stuttering < 1 && (!(HULK in C.mutations)))
C.stuttering = 1
C.Weaken(1)
C.Stun(1)
C.Weaken(3)
C.Stun(3)
C.silent += 15
C.show_message("<span class='danger'>The rune explodes in a bright flash.</span>", 3)
admin_attack_log(user, C, "Used a stun rune.", "Was victim of a stun rune.", "used a stun rune on")
else if(issilicon(L))
var/mob/living/silicon/S = L
S.Weaken(5)
flick("e_flash", S.flash)
S.silent += 15
S.show_message("<span class='danger'>BZZZT... The rune has exploded in a bright flash.</span>", 3)
admin_attack_log(user, S, "Used a stun rune.", "Was victim of a stun rune.", "used a stun rune on")
qdel(src)
else ///When invoked as talisman, stun and mute the target mob.
else ///When invoked as talisman, flash and mute the target mob.
user.say("Dream sign ''Evil sealing talisman'[pick("'","`")]!")
var/obj/item/nullrod/N = locate() in T
if(N)
@@ -0,0 +1,6 @@
author: SynysterSparx
delete-after: True
changes:
- bugfix: "Cultist stun runes no longer stun nearby cultists."
- tweak: "Mute victims of cultist stun rune."
- tweak: "Extend cultist stun rune stun time to 3."