From f4f0b6df0b951690d08431e76766d08f347b9c2b Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Fri, 1 Sep 2023 10:21:13 -0700 Subject: [PATCH] Show correct number of AX icons on weapon image --- components/weapon/WeaponUnit/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/weapon/WeaponUnit/index.tsx b/components/weapon/WeaponUnit/index.tsx index 4209c53a..12b3574e 100644 --- a/components/weapon/WeaponUnit/index.tsx +++ b/components/weapon/WeaponUnit/index.tsx @@ -448,7 +448,8 @@ const WeaponUnit = ({ gridWeapon.ax && gridWeapon.ax.length > 0 ) { - for (let i = 0; i < gridWeapon.ax.length; i++) { + const numSkills = gridWeapon.ax[1].modifier ? 2 : 1 + for (let i = 0; i < numSkills; i++) { const image = axImage(i) if (image) images.push(image) }