refactor: improved usage of getOpponents to ignore leaved players in one short effects

This commit is contained in:
Oleg Agafonov 2025-02-03 17:46:57 +04:00
parent 81f802febc
commit 58fbfdd529
16 changed files with 17 additions and 17 deletions

View file

@ -43,7 +43,7 @@ public class LoseLifeOpponentsYouGainLifeLostEffect extends OneShotEffect {
return true;
}
int totalLifeLost = game
.getOpponents(source.getControllerId())
.getOpponents(source.getControllerId(), true)
.stream()
.map(game::getPlayer)
.filter(Objects::nonNull)

View file

@ -66,7 +66,7 @@ class AshiokNightmareMuseTokenEffect extends OneShotEffect {
return false;
}
Set<Card> cards = game
.getOpponents(source.getControllerId())
.getOpponents(source.getControllerId(), true)
.stream()
.map(game::getPlayer)
.filter(Objects::nonNull)