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
|
|
@ -99,7 +99,8 @@ public class CipherEffect extends OneShotEffect {
|
|||
ContinuousEffect effect = new GainAbilityTargetEffect(ability, Duration.Custom);
|
||||
effect.setTargetPointer(new FixedTarget(target.getFirstTarget()));
|
||||
game.addEffect(effect, source);
|
||||
game.informPlayers(new StringBuilder(sourceCard.getLogName()).append(": Spell ciphered to ").append(targetCreature.getLogName()).toString());
|
||||
if (!game.isSimulation())
|
||||
game.informPlayers(new StringBuilder(sourceCard.getLogName()).append(": Spell ciphered to ").append(targetCreature.getLogName()).toString());
|
||||
return sourceCard.moveToExile(null, "", source.getSourceId(), game);
|
||||
} else {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue