Fix Munda, Ambush Leader being able to reveal non-Ally cards.

This commit is contained in:
LoneFox 2015-10-02 09:32:25 +03:00
parent 7479ae7644
commit bff06e3e0e

View file

@ -81,7 +81,7 @@ public class MundaAmbushLeader extends CardImpl {
class MundaAmbushLeaderEffect extends OneShotEffect { class MundaAmbushLeaderEffect extends OneShotEffect {
private static final FilterCard filter = new FilterCard("Ally cards to reveal and put on top of your libraray"); private static final FilterCard filter = new FilterCard("Ally cards to reveal and put on top of your library");
static { static {
filter.add(new SubtypePredicate("Ally")); filter.add(new SubtypePredicate("Ally"));
@ -111,7 +111,7 @@ class MundaAmbushLeaderEffect extends OneShotEffect {
controller.lookAtCards(sourceObject.getIdName(), allCards, game); controller.lookAtCards(sourceObject.getIdName(), allCards, game);
if (!allCards.isEmpty()) { if (!allCards.isEmpty()) {
Cards cardsToReveal = new CardsImpl(); Cards cardsToReveal = new CardsImpl();
TargetCard target = new TargetCard(0, Integer.MAX_VALUE, Zone.LIBRARY, new FilterCard("Ally cards to put on top of your libraray")); TargetCard target = new TargetCard(0, Integer.MAX_VALUE, Zone.LIBRARY, filter);
controller.chooseTarget(outcome, allCards, target, source, game); controller.chooseTarget(outcome, allCards, target, source, game);
cardsToReveal.addAll(target.getTargets()); cardsToReveal.addAll(target.getTargets());
if (!cardsToReveal.isEmpty()) { if (!cardsToReveal.isEmpty()) {