Skip to content

Commit

Permalink
[MIRROR] Fixes Relay Attackers Misfire [MDB IGNORE] (#661)
Browse files Browse the repository at this point in the history
* Fixes Relay Attackers Misfire (#79731)
---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: san7890 <[email protected]>
  • Loading branch information
3 people authored Nov 16, 2023
1 parent 3e81871 commit 93ee090
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/datums/elements/relay_attackers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@
))
REMOVE_TRAIT(source, TRAIT_RELAYING_ATTACKER, REF(src))

/datum/element/relay_attackers/proc/after_attackby(atom/target, obj/item/weapon, mob/attacker)
/datum/element/relay_attackers/proc/after_attackby(atom/target, obj/item/weapon, mob/attacker, proximity_flag, click_parameters)
SIGNAL_HANDLER
if(!proximity_flag) // we don't care about someone clicking us with a piece of metal from across the room
return
if(weapon.force)
relay_attacker(target, attacker, weapon.damtype == STAMINA ? ATTACKER_STAMINA_ATTACK : ATTACKER_DAMAGING_ATTACK)

Expand Down

0 comments on commit 93ee090

Please sign in to comment.