Fixed #221, Crypt Incursion exiling non creatures instead of creatures and giving life to target player instead controller.

This commit is contained in:
LevelX2 2013-05-20 10:36:23 +02:00
parent 31da9dcdfd
commit 7fd1e24378

View file

@ -92,13 +92,13 @@ class CryptIncursionEffect extends OneShotEffect<CryptIncursionEffect> {
if (player != null && targetPlayer != null) {
int exiledCards = 0;
for (Card card: targetPlayer.getGraveyard().getCards(game)) {
if (!filter.match(card, game)) {
if (filter.match(card, game)) {
if (card.moveToExile(null, "", source.getId(), game)) {
exiledCards++;
}
}
}
targetPlayer.gainLife(exiledCards * 3, game);
player.gainLife(exiledCards * 3, game);
return true;
}
return false;