Skip to content

Commit

Permalink
prevents electropack shocking dead people and moving them (#8228)
Browse files Browse the repository at this point in the history
# About the pull request

bug fix, let me know if i should do this another way
fixes #8227
# Explain why it's good for the game

soul removal

# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
fix: You can no longer shock dead people with the electropack and move
them
/:cl:

---------

Co-authored-by: InsaneRed <[email protected]>
Co-authored-by: harryob <[email protected]>
  • Loading branch information
3 people authored Jan 27, 2025
1 parent 94de30c commit 5f566c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/objects/items/devices/radio/electropack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
var/mob/M = loc
var/turf/T = M.loc
if(istype(T, /turf))
if( (world.time - mob_move_time) >= (5 SECONDS) && M.last_move_dir)
if((world.time - mob_move_time) >= (5 SECONDS) && M.last_move_dir && M.stat == CONSCIOUS)
mob_move_time = world.time
step(M, M.last_move_dir)
to_chat(M, SPAN_DANGER("You feel a sharp shock!"))
Expand Down

0 comments on commit 5f566c1

Please sign in to comment.