Skip to content

Commit

Permalink
Merge pull request #1854 from gereon77/fix-doran-turn-skipped-detection
Browse files Browse the repository at this point in the history
Fix turn skipped detection
  • Loading branch information
gereon77 authored Jul 6, 2024
2 parents 7a8f951 + 935134b commit 0ec6994
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 0ec6994

Please sign in to comment.