calculate -1 to hit directly in ws
This commit is contained in:
+12
-1
@@ -57,7 +57,7 @@ const Weapon = ({ weapon, modelStats, isMelee, className }) => {
|
||||
type = type.substring(0, lastWhiteSpace);
|
||||
|
||||
const bs = modelStats[0].bs;
|
||||
const ws = modelStats[0].ws;
|
||||
let ws = modelStats[0].ws;
|
||||
const strModel = modelStats[0].str;
|
||||
const meleeAttacks = modelStats[0].attacks;
|
||||
|
||||
@@ -83,6 +83,17 @@ const Weapon = ({ weapon, modelStats, isMelee, className }) => {
|
||||
abilities = abilities.replaceAll("Blast", "");
|
||||
type += ", Blast";
|
||||
}
|
||||
if (
|
||||
abilities?.includes(
|
||||
"Each time an attack is made with this weapon, subtract 1 from that attack’s hit roll."
|
||||
)
|
||||
) {
|
||||
abilities = abilities.replaceAll(
|
||||
"Each time an attack is made with this weapon, subtract 1 from that attack’s hit roll.",
|
||||
""
|
||||
);
|
||||
ws = `${parseInt(ws, 10) + 1}+`;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user