mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Adding Game Logging for Encode, so you can see which creature got encoded.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user