mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Some minor fixes to game log / card rules text /messages.
This commit is contained in:
parent
4e3ec26dbd
commit
0042dc1ad9
4 changed files with 16 additions and 11 deletions
|
|
@ -76,8 +76,7 @@ public class ExileTargetForSourceEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
for (UUID targetId : targetPointer.getTargets(game, source)) {
|
||||
MageObject mageObject = game.getObject(targetId);
|
||||
if (mageObject != null) {
|
||||
|
|
@ -99,6 +98,8 @@ public class ExileTargetForSourceEffect extends OneShotEffect {
|
|||
|
||||
if (mode.getTargets().isEmpty()) {
|
||||
return "exile it";
|
||||
} else if (mode.getTargets().get(0).getTargetName().startsWith("another")) {
|
||||
return "exile " + mode.getTargets().get(0).getTargetName();
|
||||
} else {
|
||||
return "exile target " + mode.getTargets().get(0).getTargetName();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3146,7 +3146,7 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
successfulMovedCards = moveCardsToGraveyardWithInfo(cards, source, game, fromZone);
|
||||
return successfulMovedCards.size() > 0;
|
||||
case BATTLEFIELD: // new logic that does not yet add the permanents to battlefield while replacement effects are handled
|
||||
List<ZoneChangeInfo> infoList = new ArrayList<ZoneChangeInfo>();
|
||||
List<ZoneChangeInfo> infoList = new ArrayList<>();
|
||||
for (Card card : cards) {
|
||||
fromZone = game.getState().getZone(card.getId());
|
||||
ZoneChangeEvent event = new ZoneChangeEvent(card.getId(), source.getSourceId(), byOwner ? card.getOwnerId() : getId(), fromZone, Zone.BATTLEFIELD, appliedEffects);
|
||||
|
|
@ -3158,9 +3158,12 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
if (permanent != null) {
|
||||
successfulMovedCards.add(permanent);
|
||||
if (!game.isSimulation()) {
|
||||
game.informPlayers(game.getPlayer(info.event.getPlayerId()) + " puts "
|
||||
+ (info.faceDown ? "a card face down " : permanent.getLogName()) + " from "
|
||||
+ fromZone.toString().toLowerCase(Locale.ENGLISH) + " onto the Battlefield");
|
||||
Player eventPlayer = game.getPlayer(info.event.getPlayerId());
|
||||
if (eventPlayer != null && fromZone != null) {
|
||||
game.informPlayers(eventPlayer.getLogName() + " puts "
|
||||
+ (info.faceDown ? "a card face down " : permanent.getLogName()) + " from "
|
||||
+ fromZone.toString().toLowerCase(Locale.ENGLISH) + " onto the Battlefield");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue