mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
[MIRROR] right clicking on a ranged attack now calls afterattack when it's supposed to (#3309)
* right clicking on a ranged attack now calls afterattack when it's supposed to (#56829) Makes right-click ranged attacks run afterattack, if afterattack_secondary returns SECONDARY_ATTACK_CALL_NORMAL, as it's supposed to. Fixes #56795 and #56810 * right clicking on a ranged attack now calls afterattack when it's supposed to Co-authored-by: TJatPBnJ <69724863+TJatPBnJ@users.noreply.github.com>
This commit is contained in:
@@ -156,7 +156,10 @@
|
||||
else
|
||||
if(W)
|
||||
if(modifiers["right"])
|
||||
W.afterattack_secondary(A,src,0,params)
|
||||
var/after_attack_secondary_result = W.afterattack_secondary(A, src, FALSE, params)
|
||||
|
||||
if(after_attack_secondary_result == SECONDARY_ATTACK_CALL_NORMAL)
|
||||
W.afterattack(A, src, FALSE, params)
|
||||
else
|
||||
W.afterattack(A,src,0,params)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user