mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Merge origin/master
Conflicts: Mage/src/mage/abilities/effects/common/ReturnFromExileForSourceEffect.java
This commit is contained in:
parent
37a0c321b6
commit
1c085b30e2
2 changed files with 5 additions and 4 deletions
|
@ -326,7 +326,7 @@ public abstract class AbilityImpl implements Ability {
|
|||
if (getTargets().size() > 0 && getTargets().chooseTargets(getEffects().get(0).getOutcome(), this.controllerId, this, game) == false) {
|
||||
if ((variableManaCost != null || announceString != null) && !game.isSimulation()) {
|
||||
game.informPlayer(controller, new StringBuilder(sourceObject != null ? sourceObject.getLogName(): "").append(": no valid targets with this value of X").toString());
|
||||
}
|
||||
}
|
||||
return false; // when activation of ability is canceled during target selection
|
||||
}
|
||||
} // end modes
|
||||
|
|
|
@ -106,9 +106,10 @@ public class ReturnFromExileForSourceEffect extends OneShotEffect {
|
|||
if (card == null) {
|
||||
return false;
|
||||
}
|
||||
if (!game.isSimulation())
|
||||
game.informPlayers(controller.getName() + " moves " + card.getLogName() + " from exile to " + zone.toString().toLowerCase());
|
||||
card.moveToZone(zone, source.getSourceId(), game, tapped);
|
||||
if (!game.isSimulation()) {
|
||||
game.informPlayers(controller.getName() + " moves " + card.getLogName() + " from exile to " + returnToZone.toString().toLowerCase());
|
||||
}
|
||||
card.moveToZone(returnToZone, source.getSourceId(), game, tapped);
|
||||
}
|
||||
exile.clear();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue