Skip to content

Commit

Permalink
show a message when a player decide to scry but leave card on top
Browse files Browse the repository at this point in the history
  • Loading branch information
melvinzhang committed Feb 18, 2015
1 parent 3038737 commit ab0da8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/magic/model/event/MagicScryEvent.java
Expand Up @@ -25,10 +25,12 @@ public MagicScryEvent(final MagicSource source, final MagicPlayer player) {
private static final MagicEventAction EventAction = new MagicEventAction() {
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final MagicPlayer p = event.getPlayer();
if (event.isYes()) {
final MagicPlayer p = event.getPlayer();
game.logAppendMessage(p, p + " moves a card from top of his or her library to the bottom.");
game.doAction(new MagicScryAction(p));
} else {
game.logAppendMessage(p, p + " looked at the card from the top of his or her library and left it on top.");
}
}
};
Expand Down

0 comments on commit ab0da8b

Please sign in to comment.