mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Fixed Preeminent Captain putting creatures into play untapped
This commit is contained in:
parent
589121d74a
commit
5435deae7b
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
package mage.cards.p;
|
package mage.cards.p;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -72,12 +71,13 @@ class PreeminentCaptainEffect extends OneShotEffect {
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
Player controller = game.getPlayer(source.getControllerId());
|
Player controller = game.getPlayer(source.getControllerId());
|
||||||
TargetCardInHand target = new TargetCardInHand(filter);
|
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()) {
|
if (!target.getTargets().isEmpty()) {
|
||||||
UUID cardId = target.getFirstTarget();
|
UUID cardId = target.getFirstTarget();
|
||||||
Card card = controller.getHand().get(cardId, game);
|
Card card = controller.getHand().get(cardId, game);
|
||||||
if (card != null) {
|
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());
|
Permanent permanent = game.getPermanent(card.getId());
|
||||||
if (permanent != null) {
|
if (permanent != null) {
|
||||||
game.getCombat().addAttackingCreature(permanent.getId(), game);
|
game.getCombat().addAttackingCreature(permanent.getId(), game);
|
||||||
|
|
Loading…
Reference in a new issue