Merge fix

This commit is contained in:
Oleg Agafonov 2023-11-18 15:36:55 +04:00
parent 515444affd
commit 4f081c0918
2 changed files with 7 additions and 1 deletions

View file

@ -16,6 +16,9 @@ import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
/**
* @author JayDi85
*/
public class CardHintsTest extends CardTestCommanderDuelBase {
// html logs/names used all around xmage (game logs, chats, choose dialogs, etc)
@ -114,7 +117,7 @@ public class CardHintsTest extends CardTestCommanderDuelBase {
setStopAt(1, PhaseStep.DECLARE_ATTACKERS);
execute();
// colleat all possible objects and test logs with it
// collect all possible objects and test logs with it
List<MageObject> sampleObjects = new ArrayList<>();
sampleObjects.addAll(currentGame.getBattlefield().getAllPermanents());
sampleObjects.addAll(playerA.getHand().getCards(currentGame));

View file

@ -21,6 +21,9 @@ public class SourceMatchesFilterCondition implements Condition {
}
public SourceMatchesFilterCondition(String text, FilterPermanent filter) {
if (filter == null) {
throw new IllegalArgumentException("Wrong code usage: filter param can't be empty");
}
this.FILTER = filter;
this.text = text;
}