Skip to content

Commit

Permalink
fix incorrect binlog with bounces by settings attackerAttackPower a…
Browse files Browse the repository at this point in the history
…nd `defenderAttackPower` to 0 when there's a bounce
  • Loading branch information
samualtnorman committed Dec 31, 2024
1 parent 82dba00 commit 41297a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/doCombat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ export function doCombat(
if (
attackerBounceIndexes.length || defenderBounceIndexes.length || !(attackerAttackPower || defenderAttackPower)
) {
attackerAttackPower = 0
defenderAttackPower = 0

for (const index of defenderBounceIndexes.reverse()) {
const bounceDiscarded = defenderStack.splice(index, 1)[0]!

Expand Down

0 comments on commit 41297a8

Please sign in to comment.