Skip to content

Commit

Permalink
makes revenants not runtime clicking nearly anything (#25601)
Browse files Browse the repository at this point in the history
* makes revenants not runtime clicking nearly anything

* Update code/_onclick/observer_onclick.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Signed-off-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com>

---------

Signed-off-by: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
  • Loading branch information
Qwertytoforty and Contrabang authored May 25, 2024
1 parent 2ea75e8 commit 2e01f35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/_onclick/observer_onclick.dm
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
/atom/proc/attack_ghost(mob/dead/observer/user)
if(SEND_SIGNAL(src, COMSIG_ATOM_ATTACK_GHOST, user) & COMPONENT_CANCEL_ATTACK_CHAIN)
return TRUE
if(!istype(user)) // Make sure user is actually an observer. Revenents also use attack_ghost, but do not have the health_scan var.
return FALSE
if(user.client)
if(user.gas_scan && atmos_scan(user=user, target=src, silent=TRUE))
return TRUE
Expand Down

0 comments on commit 2e01f35

Please sign in to comment.