Skip to content

Commit

Permalink
You can't attack mobs without combat mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapu1178 committed Sep 10, 2023
1 parent 33ab6a4 commit 4a370a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/_onclick/item_attack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@
if(signal_return & COMPONENT_SKIP_ATTACK)
return

if(!user.combat_mode)
return

SEND_SIGNAL(user, COMSIG_MOB_ITEM_ATTACK, M, user, params)

if(item_flags & NOBLUDGEON)
Expand Down

0 comments on commit 4a370a7

Please sign in to comment.