forked from External/mage
added optimization for simulations - don't construct Strings for messages that will never be used
This commit is contained in:
parent
9f834bc6f7
commit
a878d4879b
67 changed files with 313 additions and 205 deletions
|
|
@ -141,7 +141,8 @@ public class LookLibraryAndPickControllerEffect extends LookLibraryControllerEff
|
|||
player.putOntoBattlefieldWithInfo(card, game, Zone.LIBRARY, source.getSourceId());
|
||||
} else {
|
||||
card.moveToZone(targetPickedCards, source.getSourceId(), game, false);
|
||||
game.informPlayers(player.getName() + " moves a card to " + targetPickedCards.toString().toLowerCase());
|
||||
if (!game.isSimulation())
|
||||
game.informPlayers(player.getName() + " moves a card to " + targetPickedCards.toString().toLowerCase());
|
||||
}
|
||||
if (revealPickedCards) {
|
||||
reveal.add(card);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue