Skip to content

Commit

Permalink
[MIRROR] Fixes disarm intent combat (#2660)
Browse files Browse the repository at this point in the history
Co-authored-by: BurpleBineapple <[email protected]>
Co-authored-by: AmShegars <[email protected]>
  • Loading branch information
3 people authored Nov 21, 2024
1 parent ea64e7e commit 0aa0332
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion code/_onclick/item_attack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ avoid code duplication. This includes items that may sometimes act as a standard

use_call = "use"
. = use_before(atom, user, click_params)
if (!. && user.a_intent == I_HURT)
if (!. && (user.a_intent == I_HURT || user.a_intent == I_DISARM))
use_call = "weapon"
. = atom.use_weapon(src, user, click_params)
if (!.)
Expand Down
3 changes: 0 additions & 3 deletions code/modules/projectiles/gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,8 @@
else
Fire(target, user, pointblank = TRUE)
return TRUE

// Point blank shooting
if (user.a_intent == I_HURT && !user.isEquipped(target))
if (safety()) // Pistol whip instead of unsafety+fire
return ..()
Fire(target, user, pointblank = TRUE)
return TRUE

Expand Down

0 comments on commit 0aa0332

Please sign in to comment.