Fixes loading ammo for the L6-SAW (#496)

This commit is contained in:
CitadelStationBot
2017-04-20 22:02:26 -05:00
committed by Poojawa
parent 076562e7fd
commit afdabc97ec

View File

@@ -333,10 +333,7 @@
/obj/item/weapon/gun/ballistic/automatic/l6_saw/attackby(obj/item/A, mob/user, params)
. = ..()
if(.)
return
if(!cover_open)
if(!cover_open && istype(A, mag_type))
to_chat(user, "<span class='warning'>[src]'s cover is closed! You can't insert a new mag.</span>")
return
..()