From 57ef111a007469e23d515992330797e4f0a5bc72 Mon Sep 17 00:00:00 2001 From: Tiyo Date: Tue, 7 Nov 2023 20:29:35 +0800 Subject: [PATCH] fix: fix battle atk --- packages/client/src/components/Battle/index.tsx | 4 ++-- packages/client/src/components/Battle/styles.scss | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/client/src/components/Battle/index.tsx b/packages/client/src/components/Battle/index.tsx index ce2a721d..80cf1054 100644 --- a/packages/client/src/components/Battle/index.tsx +++ b/packages/client/src/components/Battle/index.tsx @@ -269,11 +269,11 @@ export default function Battle(props) {
HP : {battleData.attackerHP}/{props?.curPlayer?.addr == battleData.attacker ? props?.curPlayer?.maxHp.toString() : props?.targetPlayer?.maxHp.toString()}
-
ATK : 20
+
ATK : {props?.curPlayer?.addr == battleData.attacker ? props?.curPlayer?.attack?.toString() : props?.targetPlayer?.attack.toString()}
HP : {battleData.defenderHP}/{props?.curPlayer?.addr == battleData.defender ? props?.curPlayer?.maxHp.toString() : props?.targetPlayer?.maxHp.toString()}
-
ATK : 20
+
ATK : {props?.curPlayer?.addr == battleData.defender ? props?.curPlayer?.attack?.toString() : props?.targetPlayer?.attack.toString()}
diff --git a/packages/client/src/components/Battle/styles.scss b/packages/client/src/components/Battle/styles.scss index 503375f6..ad2e01b4 100644 --- a/packages/client/src/components/Battle/styles.scss +++ b/packages/client/src/components/Battle/styles.scss @@ -6,7 +6,7 @@ display: flex; align-items: center; justify-content: center; - z-index: 999; + z-index: 9999; } .mi-battle-content {