Fix Warp World not putting anything onto the Battlefield.

Warp World was falsely claiming that the revealed cards were in a Player's Hand. The zones code that checks correctness determined this was a lie.
This commit is contained in:
Dilnu 2016-11-07 08:07:39 -05:00
parent 39ba6f5d4c
commit aac45f2ad2

View file

@ -152,7 +152,7 @@ class WarpWorldEffect extends OneShotEffect {
if (card != null && (card.getCardType().contains(CardType.ARTIFACT) if (card != null && (card.getCardType().contains(CardType.ARTIFACT)
|| card.getCardType().contains(CardType.CREATURE) || card.getCardType().contains(CardType.CREATURE)
|| card.getCardType().contains(CardType.LAND))) { || card.getCardType().contains(CardType.LAND))) {
card.putOntoBattlefield(game, Zone.HAND, source.getSourceId(), player.getId()); card.putOntoBattlefield(game, Zone.LIBRARY, source.getSourceId(), player.getId());
cards.remove(card); cards.remove(card);
} }
} }
@ -166,7 +166,7 @@ class WarpWorldEffect extends OneShotEffect {
CardsImpl cards = cardsRevealed.get(player.getId()); CardsImpl cards = cardsRevealed.get(player.getId());
for (Card card : cards.getCards(game)) { for (Card card : cards.getCards(game)) {
if (card != null && card.getCardType().contains(CardType.ENCHANTMENT)) { if (card != null && card.getCardType().contains(CardType.ENCHANTMENT)) {
card.putOntoBattlefield(game, Zone.HAND, source.getSourceId(), player.getId()); card.putOntoBattlefield(game, Zone.LIBRARY, source.getSourceId(), player.getId());
cards.remove(card); cards.remove(card);
} }
} }