mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
Fixed #221, Crypt Incursion exiling non creatures instead of creatures and giving life to target player instead controller.
This commit is contained in:
parent
31da9dcdfd
commit
7fd1e24378
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue