Fixed tests

This commit is contained in:
Oleg Agafonov 2023-04-29 21:30:34 +04:00
parent 46e0af6cc2
commit aaa92d5e46
2 changed files with 2 additions and 2 deletions

View file

@ -70,7 +70,7 @@ public class Exile implements Serializable, Copyable<Exile> {
return allCards.stream().filter(card -> filter.match(card, game)).collect(Collectors.toList());
}
@Deprecated // TODO: must use related request due game range
@Deprecated // TODO: must use related request due game range like getAllCardsByRange
public List<Card> getAllCards(Game game) {
return getAllCards(game, null);
}

View file

@ -53,7 +53,7 @@ public class TargetCardInExile extends TargetCard {
public Set<UUID> possibleTargets(UUID sourceControllerId, Ability source, Game game) {
Set<UUID> possibleTargets = new HashSet<>();
if (allExileZones) {
for (Card card : game.getExile().getAllCards(game, sourceControllerId)) {
for (Card card : game.getExile().getAllCardsByRange(game, sourceControllerId)) {
if (filter.match(card, sourceControllerId, source, game)) {
possibleTargets.add(card.getId());
}