Skip to content

Commit

Permalink
fix: fix battle atk
Browse files Browse the repository at this point in the history
  • Loading branch information
TiyoSheng committed Nov 7, 2023
1 parent 97dfccf commit 57ef111
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/client/src/components/Battle/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,11 @@ export default function Battle(props) {
<div className="mi-battle-character-info">
<div className="character-info self">
<div>HP : {battleData.attackerHP}/{props?.curPlayer?.addr == battleData.attacker ? props?.curPlayer?.maxHp.toString() : props?.targetPlayer?.maxHp.toString()}</div>
<div>ATK : 20</div>
<div>ATK : {props?.curPlayer?.addr == battleData.attacker ? props?.curPlayer?.attack?.toString() : props?.targetPlayer?.attack.toString()}</div>
</div>
<div className="character-info opponent">
<div>HP : {battleData.defenderHP}/{props?.curPlayer?.addr == battleData.defender ? props?.curPlayer?.maxHp.toString() : props?.targetPlayer?.maxHp.toString()}</div>
<div>ATK : 20</div>
<div>ATK : {props?.curPlayer?.addr == battleData.defender ? props?.curPlayer?.attack?.toString() : props?.targetPlayer?.attack.toString()}</div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/components/Battle/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
display: flex;
align-items: center;
justify-content: center;
z-index: 999;
z-index: 9999;
}

.mi-battle-content {
Expand Down

0 comments on commit 57ef111

Please sign in to comment.