mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
fixed Seasoned Pyromancer not drawing cards when empty-handed
This commit is contained in:
parent
4b5f3f74fd
commit
43bb70f0cc
1 changed files with 6 additions and 7 deletions
|
@ -83,14 +83,13 @@ class SeasonedPyromancerEffect extends OneShotEffect {
|
|||
return false;
|
||||
}
|
||||
TargetCard target = new TargetCardInHand(2, StaticFilters.FILTER_CARD);
|
||||
if (!player.choose(outcome, player.getHand(), target, game)) {
|
||||
return false;
|
||||
}
|
||||
Cards cards = new CardsImpl(target.getTargets());
|
||||
int nonlands = 0;
|
||||
for (Card card : cards.getCards(game)) {
|
||||
if (player.discard(card, source, game) && !card.isLand()) {
|
||||
nonlands++;
|
||||
if (player.choose(outcome, player.getHand(), target, game)) {
|
||||
Cards cards = new CardsImpl(target.getTargets());
|
||||
for (Card card : cards.getCards(game)) {
|
||||
if (player.discard(card, source, game) && !card.isLand()) {
|
||||
nonlands++;
|
||||
}
|
||||
}
|
||||
}
|
||||
player.drawCards(2, game);
|
||||
|
|
Loading…
Reference in a new issue