Skip to content

Commit

Permalink
plasma charge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Jul 20, 2023
1 parent 9f27393 commit bcaca58
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code/game/objects/items/explosives/plastic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,12 @@
to_chat(user, SPAN_WARNING("[window] is much too tough for you to do anything to it with [src].")) //On purpose to mimic wall message
return FALSE

if(istype(target, /turf/closed/wall))
var/turf/closed/wall/W = target
if(W.hull)
to_chat(user, SPAN_WARNING("You are unable to stick \the [src] to the [W]!"))
return FALSE

return TRUE

/obj/item/explosive/plastic/breaching_charge/handle_explosion(turf/target_turf, dir, cause_data)
Expand Down Expand Up @@ -364,7 +370,7 @@
if(!HAS_TRAIT(user, TRAIT_YAUTJA_TECH))
to_chat(user, SPAN_WARNING("You don't quite understand how the device works..."))
return FALSE
..()
. = ..()

/obj/item/explosive/plastic/breaching_charge/plasma/handle_explosion(turf/target_turf, dir, cause_data)
var/explosion_target = get_step(target_turf, dir)
Expand Down

0 comments on commit bcaca58

Please sign in to comment.