mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-12 16:37:19 +01:00
Fixes Longbow shells exploding when mechs pick them up (#22580)
Fixes #22578 Longbow attackby now calls it's parent, which made them explode because mech clamps are more than force 10.
This commit is contained in:
@@ -66,8 +66,11 @@
|
||||
|
||||
/obj/item/ship_ammunition/attackby(obj/item/attacking_item, mob/user)
|
||||
if(attacking_item.force > 10 && (ammunition_flags & SHIP_AMMO_FLAG_VERY_FRAGILE))
|
||||
log_and_message_admins("[user] has caused the cookoff of [src] by attacking it with [attacking_item]!", user)
|
||||
cookoff(FALSE)
|
||||
if(istype(attacking_item, /obj/item/mecha_equipment/clamp))
|
||||
return ..()
|
||||
else
|
||||
log_and_message_admins("[user] has caused the cookoff of [src] by attacking it with [attacking_item]!", user)
|
||||
cookoff(FALSE)
|
||||
|
||||
else if(attacking_item.tool_behaviour == TOOL_PEN)
|
||||
var/obj/item/pen/P = attacking_item
|
||||
|
||||
Reference in New Issue
Block a user