Merge pull request #11907 from PsiOmegaDelta/160106-SecureEmag

Adds missing istype() check before the secure brief case emag check.
This commit is contained in:
Chinsky
2016-01-07 02:48:37 +03:00
@@ -33,7 +33,7 @@
attackby(obj/item/weapon/W as obj, mob/user as mob)
if(locked)
if (emag_act(INFINITY, user, "You slice through the lock of \the [src]"))
if (istype(W, /obj/item/weapon/melee/energy/blade) && emag_act(INFINITY, user, "You slice through the lock of \the [src]"))
var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread()
spark_system.set_up(5, 0, src.loc)
spark_system.start()