Fixed Fleet Swallower + Bruvac interaction (fixes #7223) (#7317)

This commit is contained in:
Daniel Bomar 2021-01-01 09:56:18 -06:00 committed by GitHub
parent 2e4baeed93
commit fde31b6252
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,6 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.constants.Zone;
import mage.game.Game;
import mage.players.Player;
import mage.target.TargetPlayer;
@ -61,7 +60,8 @@ class FleetSwallowerEffect extends OneShotEffect {
Player player = game.getPlayer(source.getFirstTarget());
if (player != null) {
int amount = (int) Math.ceil(player.getLibrary().size() * .5);
return player.moveCards(player.getLibrary().getTopCards(game, amount), Zone.GRAVEYARD, source, game);
player.millCards(amount, source, game);
return true;
}
return false;
}