Merge pull request #6986 from Citadel-Station-13/upstream-merge-38250

[MIRROR] [s]Fixes bloodcult exploit
This commit is contained in:
LetterJay
2018-06-03 10:42:16 -05:00
committed by GitHub
+1 -1
View File
@@ -64,7 +64,7 @@
qdel(nullify_spell)
return
BS = possible_spells[entered_spell_name]
if(QDELETED(src) || owner.incapacitated() || !BS)
if(QDELETED(src) || owner.incapacitated() || !BS || (rune && !(locate(/obj/effect/rune/empower) in range(1, owner))) || (spells.len >= limit))
return
to_chat(owner,"<span class='warning'>You begin to carve unnatural symbols into your flesh!</span>")
SEND_SOUND(owner, sound('sound/weapons/slice.ogg',0,1,10))