From aa73522a1ebc90f3c6bd8622ee2f9cb305fd2162 Mon Sep 17 00:00:00 2001 From: FreezePhoenix <24441367+FreezePhoenix@users.noreply.github.com> Date: Thu, 14 Mar 2024 14:26:25 -0400 Subject: [PATCH] Fix Piercing Shot to actually grant Armor Piercing Prior to this change, Piercing Shot (A ranger skill) that gives 500 armor piercing would only grant this pierce if the player had no pierce themselves. If the player had pierce, the pierce from the skill would then be overwritten by the player's pierce. This change fixes it by adding the player's pierce (or miss chance!) to the skills stats. --- node/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/server.js b/node/server.js index b4fae70..823cea2 100644 --- a/node/server.js +++ b/node/server.js @@ -2972,7 +2972,7 @@ function commence_attack(attacker, target, atype) { } ["apiercing", "rpiercing", "miss"].forEach(function (p) { if (attacker[p]) { - info[p] = attacker[p]; + info[p] = (info[p] || 0) + attacker[p]; } }); if (