mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Merge pull request #7973 from weirddan455/verdant-mastery
[STX] Fixed Verdant Mastery targeting issues (fixes #7971)
This commit is contained in:
commit
ca5dbf8067
1 changed files with 4 additions and 2 deletions
|
@ -70,7 +70,7 @@ class VerdantMasteryEffect extends OneShotEffect {
|
||||||
if (player == null) {
|
if (player == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
TargetCardInLibrary target = new TargetCardInLibrary(4, StaticFilters.FILTER_CARD_BASIC_LAND);
|
TargetCardInLibrary target = new TargetCardInLibrary(0, 4, StaticFilters.FILTER_CARD_BASIC_LAND);
|
||||||
player.searchLibrary(target, source, game);
|
player.searchLibrary(target, source, game);
|
||||||
Cards cards = new CardsImpl(target.getTargets());
|
Cards cards = new CardsImpl(target.getTargets());
|
||||||
player.revealCards(source, cards, game);
|
player.revealCards(source, cards, game);
|
||||||
|
@ -86,6 +86,7 @@ class VerdantMasteryEffect extends OneShotEffect {
|
||||||
Player opponent = game.getPlayer(targetOpponent.getFirstTarget());
|
Player opponent = game.getPlayer(targetOpponent.getFirstTarget());
|
||||||
if (opponent != null) {
|
if (opponent != null) {
|
||||||
target = new TargetCardInLibrary(1, StaticFilters.FILTER_CARD_BASIC_LAND);
|
target = new TargetCardInLibrary(1, StaticFilters.FILTER_CARD_BASIC_LAND);
|
||||||
|
target.setRequired(true);
|
||||||
target.withChooseHint("to give to " + opponent.getName());
|
target.withChooseHint("to give to " + opponent.getName());
|
||||||
player.choose(outcome, cards, target, game);
|
player.choose(outcome, cards, target, game);
|
||||||
Card card = game.getCard(target.getFirstTarget());
|
Card card = game.getCard(target.getFirstTarget());
|
||||||
|
@ -100,7 +101,8 @@ class VerdantMasteryEffect extends OneShotEffect {
|
||||||
player.shuffleLibrary(source, game);
|
player.shuffleLibrary(source, game);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
target = new TargetCardInLibrary(0, 2, StaticFilters.FILTER_CARD_BASIC_LAND);
|
target = new TargetCardInLibrary(Math.min(cards.size(), 2), StaticFilters.FILTER_CARD_BASIC_LAND);
|
||||||
|
target.setRequired(true);
|
||||||
player.choose(outcome, cards, target, game);
|
player.choose(outcome, cards, target, game);
|
||||||
player.moveCards(
|
player.moveCards(
|
||||||
new CardsImpl(target.getTargets()).getCards(game), Zone.BATTLEFIELD, source,
|
new CardsImpl(target.getTargets()).getCards(game), Zone.BATTLEFIELD, source,
|
||||||
|
|
Loading…
Reference in a new issue