fix images staying after switching roster
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ const Force = ({ force, onePerPage }) => {
|
|||||||
>
|
>
|
||||||
{units.map((unit, index) => (
|
{units.map((unit, index) => (
|
||||||
<Unit
|
<Unit
|
||||||
key={index}
|
key={unit.name + index}
|
||||||
index={index}
|
index={index}
|
||||||
unit={unit}
|
unit={unit}
|
||||||
catalog={catalog}
|
catalog={catalog}
|
||||||
|
|||||||
@@ -138,6 +138,7 @@ const Weapon = ({
|
|||||||
"Each time an attack is made with this weapon profile, that attack automatically hits the target.",
|
"Each time an attack is made with this weapon profile, that attack automatically hits the target.",
|
||||||
"This weapon automatically hits its target.",
|
"This weapon automatically hits its target.",
|
||||||
"This weapon automatically hits its targets.",
|
"This weapon automatically hits its targets.",
|
||||||
|
"This weapon hits automatically",
|
||||||
"When resolving an attack made with this weapon, do not make a hit roll: it automatically scores a hit.",
|
"When resolving an attack made with this weapon, do not make a hit roll: it automatically scores a hit.",
|
||||||
],
|
],
|
||||||
"Torrent",
|
"Torrent",
|
||||||
@@ -292,6 +293,9 @@ const Weapon = ({
|
|||||||
) ||
|
) ||
|
||||||
abilities?.includes(
|
abilities?.includes(
|
||||||
"Each time an attack roll is made with this weapon, subtract 1 from the attack's hit roll"
|
"Each time an attack roll is made with this weapon, subtract 1 from the attack's hit roll"
|
||||||
|
) ||
|
||||||
|
abilities?.includes(
|
||||||
|
"When resolving an attack made with this weapon, subtract 1 from the hit roll"
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
abilities = abilities
|
abilities = abilities
|
||||||
@@ -322,6 +326,10 @@ const Weapon = ({
|
|||||||
.replaceAll(
|
.replaceAll(
|
||||||
"Each time an attack roll is made with this weapon, subtract 1 from the attack's hit roll",
|
"Each time an attack roll is made with this weapon, subtract 1 from the attack's hit roll",
|
||||||
""
|
""
|
||||||
|
)
|
||||||
|
.replaceAll(
|
||||||
|
"When resolving an attack made with this weapon, subtract 1 from the hit roll",
|
||||||
|
""
|
||||||
);
|
);
|
||||||
ws = ws.map((ws) => `${parseInt(ws, 10) + 1}+`);
|
ws = ws.map((ws) => `${parseInt(ws, 10) + 1}+`);
|
||||||
}
|
}
|
||||||
@@ -399,6 +407,9 @@ const Weapon = ({
|
|||||||
if (bs.every((b) => b === bs[0])) {
|
if (bs.every((b) => b === bs[0])) {
|
||||||
bs = bs[0];
|
bs = bs[0];
|
||||||
}
|
}
|
||||||
|
if (type.includes("Torrent")) {
|
||||||
|
bs = "N/A";
|
||||||
|
}
|
||||||
if (ws.every((w) => w === ws[0])) {
|
if (ws.every((w) => w === ws[0])) {
|
||||||
ws = ws[0];
|
ws = ws[0];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user