Skip to content

Commit

Permalink
Fix turn skipped detection
Browse files Browse the repository at this point in the history
  • Loading branch information
gereon77 committed Jul 6, 2024
1 parent 7a8f951 commit 935134b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ export default class DoranMartellAbilityGameState extends GameState<
currentIndex = (currentIndex + 1) % numberOfHouses;
const currentHouseToCheck = turnOrder[currentIndex];

const regions = this.combatGameState.actionGameState.getRegionsWithMarchOrderOfHouse(currentHouseToCheck);
const regions = this.combatGameState.actionGameState.getRegionsWithMarchOrderOfHouse(currentHouseToCheck)
// Filter out the march order that initiated the combat
.filter(r => r != this.combatGameState.attackingRegion);
if (regions.length > 0) {
return currentHouseToCheck;
}
Expand Down

0 comments on commit 935134b

Please sign in to comment.