mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 12:31:59 -08:00
* Some minor code and text clean up.
This commit is contained in:
parent
bc2d5caa42
commit
f480d0bebb
4 changed files with 13 additions and 12 deletions
|
|
@ -55,8 +55,8 @@ public abstract class GameCommanderImpl extends GameImpl {
|
|||
Player player = getPlayer(playerId);
|
||||
if (player != null) {
|
||||
// add new commanders
|
||||
for (UUID id : player.getSideboard()) {
|
||||
Card card = this.getCard(id);
|
||||
for (UUID cardId : player.getSideboard()) {
|
||||
Card card = this.getCard(cardId);
|
||||
if (card != null) {
|
||||
// Check for companions. If it is the only card in the sideboard, it is the commander, not a companion.
|
||||
if (player.getSideboard().size() > 1 && card.getAbilities(this).stream().anyMatch(ability -> ability instanceof CompanionAbility)) {
|
||||
|
|
|
|||
|
|
@ -4272,7 +4272,8 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
cards.addAll(getLibrary().getTopCards(game, value));
|
||||
if (!cards.isEmpty()) {
|
||||
TargetCard target = new TargetCard(0, cards.size(), Zone.LIBRARY,
|
||||
new FilterCard("cards to PUT on the BOTTOM of your library (Scry)"));
|
||||
new FilterCard("card" + (cards.size() == 1 ? "":"s")
|
||||
+ " to PUT on the BOTTOM of your library (Scry)"));
|
||||
chooseTarget(Outcome.Benefit, cards, target, source, game);
|
||||
putCardsOnBottomOfLibrary(new CardsImpl(target.getTargets()), game, source, true);
|
||||
cards.removeAll(target.getTargets());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue