Skip to content

Commit

Permalink
Update click.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Git-Nivrak committed Oct 6, 2023
1 parent 4877821 commit 2dbd52b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions code/_onclick/click.dm
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,14 @@
if (!isturf(loc))
return

if (world.time <= next_move && A.loc != src && src.a_intent != INTENT_GRAB) // Attack click cooldown check
if(A.Adjacent(src) && src.a_intent == INTENT_GRAB && !W)
click_adjacent(A, W, mods)
return

if (world.time <= next_move && A.loc != src) // Attack click cooldown check
return

if (src.a_intent != INTENT_GRAB)
next_move = world.time
next_move = world.time
// If standing next to the atom clicked.
if(A.Adjacent(src))
click_adjacent(A, W, mods)
Expand Down Expand Up @@ -158,9 +161,8 @@

W.afterattack(A, src, 1, mods)
else
if(!isitem(A) && !issurface(A))
if (a_intent != INTENT_GRAB)
next_move += 4
if(!isitem(A) && !issurface(A) && src.a_intent != INTENT_GRAB)
next_move += 4
UnarmedAttack(A, 1, mods)

/mob/proc/check_click_intercept(params,A)
Expand Down

0 comments on commit 2dbd52b

Please sign in to comment.