Some minor fixes to game log / card rules text /messages.

This commit is contained in:
LevelX2 2016-09-15 16:10:17 +02:00
parent 4e3ec26dbd
commit 0042dc1ad9
4 changed files with 16 additions and 11 deletions

View file

@ -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();
}

View file

@ -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");
}
}
}
}