From 90aa65168bb7f5e65a8a2e910933a2f511579be3 Mon Sep 17 00:00:00 2001 From: Daniel Bomar Date: Tue, 19 Oct 2021 18:09:30 -0500 Subject: [PATCH] [AKH] Fixed Harvest Season when cast with no tapped creatures (fixes #8396) --- Mage.Sets/src/mage/cards/h/HarvestSeason.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Mage.Sets/src/mage/cards/h/HarvestSeason.java b/Mage.Sets/src/mage/cards/h/HarvestSeason.java index f02072af0c..d7ebdb726c 100644 --- a/Mage.Sets/src/mage/cards/h/HarvestSeason.java +++ b/Mage.Sets/src/mage/cards/h/HarvestSeason.java @@ -71,9 +71,12 @@ class HarvestSeasonEffect extends OneShotEffect { public boolean apply(Game game, Ability source) { Player controller = game.getPlayer(source.getControllerId()); if (controller != null) { - TargetCardInLibrary target = new TargetCardInLibrary(0, new PermanentsOnBattlefieldCount(filter).calculate(game, source, this), StaticFilters.FILTER_CARD_BASIC_LAND); - if (controller.searchLibrary(target, source, game)) { - controller.moveCards(new CardsImpl(target.getTargets()).getCards(game), Zone.BATTLEFIELD, source, game, true, false, false, null); + int tappedCreatures = new PermanentsOnBattlefieldCount(filter).calculate(game, source, this); + if (tappedCreatures > 0) { + TargetCardInLibrary target = new TargetCardInLibrary(0, tappedCreatures, StaticFilters.FILTER_CARD_BASIC_LAND); + if (controller.searchLibrary(target, source, game)) { + controller.moveCards(new CardsImpl(target.getTargets()).getCards(game), Zone.BATTLEFIELD, source, game, true, false, false, null); + } } controller.shuffleLibrary(source, game); return true;