Skip to content

Commit

Permalink
fix 2 exploits (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapu1178 authored Feb 4, 2024
1 parent 2630800 commit 53dcb0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions code/game/turfs/turf.dm
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ GLOBAL_LIST_EMPTY(station_turfs)
return
if(!isliving(user))
return
if(user == victim)
return
user.move_grabbed_atoms_towards(src)


Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/carbon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
return
release_grabs(I)
else
if(!G.current_grab.can_throw || !isliving(G.affecting))
if(!G.current_grab.can_throw || !isliving(G.affecting) || G.affecting == src)
return

var/mob/living/throwable_mob = G.affecting
Expand Down

0 comments on commit 53dcb0e

Please sign in to comment.