- Adding Game Logging for Encode, so you can see which creature got encoded.

This commit is contained in:
Sol
2015-05-11 02:04:39 +00:00
parent 0b50144aec
commit fc4c6da112

View File

@@ -1,6 +1,7 @@
package forge.game.ability.effects;
import forge.game.Game;
import forge.game.GameLogEntryType;
import forge.game.ability.SpellAbilityEffect;
import forge.game.card.Card;
import forge.game.card.CardCollectionView;
@@ -57,6 +58,10 @@ public class EncodeEffect extends SpellAbilityEffect {
return;
}
StringBuilder codeLog = new StringBuilder();
codeLog.append("Encoding ").append(host.toString()).append(" to ").append(choice.toString());
game.getGameLog().add(GameLogEntryType.STACK_RESOLVE, codeLog.toString());
// store hostcard in encoded array
choice.addEncodedCard(movedCard);