Fixed Preeminent Captain putting creatures into play untapped

This commit is contained in:
Evan Kranzler 2018-06-22 21:25:52 -04:00
parent 589121d74a
commit 5435deae7b

View file

@ -1,4 +1,3 @@
package mage.cards.p;
import java.util.UUID;
@ -72,12 +71,13 @@ class PreeminentCaptainEffect extends OneShotEffect {
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
TargetCardInHand target = new TargetCardInHand(filter);
if (target.canChoose(controller.getId(), game) && target.choose(getOutcome(), controller.getId(), source.getSourceId(), game)) {
if (target.canChoose(controller.getId(), game)
&& target.choose(getOutcome(), controller.getId(), source.getSourceId(), game)) {
if (!target.getTargets().isEmpty()) {
UUID cardId = target.getFirstTarget();
Card card = controller.getHand().get(cardId, game);
if (card != null) {
if (controller.moveCards(card, Zone.BATTLEFIELD, source, game)) {
if (controller.moveCards(card, Zone.BATTLEFIELD, source, game, true, false, true, null)) {
Permanent permanent = game.getPermanent(card.getId());
if (permanent != null) {
game.getCombat().addAttackingCreature(permanent.getId(), game);