Merge pull request #5916 from jgray1206/aether_gust_fix

add aether gust unit tests + fix issue #5902
This commit is contained in:
Oleg Agafonov 2019-08-14 19:08:25 +02:00 committed by GitHub
commit e53ce49327
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 82 additions and 3 deletions

View file

@ -62,10 +62,15 @@ public class PutOnLibraryTargetEffect extends OneShotEffect {
}
break;
case GRAVEYARD:
Card graveyardCard = game.getCard(targetId);
if (graveyardCard != null) {
cards.add(graveyardCard);
}
break;
case STACK:
Card card = game.getCard(targetId);
if (card != null) {
cards.add(card);
Card stackSpellCard = game.getSpell(targetId).getCard();
if (stackSpellCard != null) {
cards.add(stackSpellCard);
}
break;
}