added reveal to MagicMiracleTrigger

master
melvin 2013-02-15 13:45:53 +08:00
parent e0c957f490
commit 25333856d6
2 changed files with 7 additions and 0 deletions

View File

@ -141,6 +141,10 @@ public class MagicCard implements MagicSource,MagicTarget,Comparable<MagicCard>
return card;
}
public void reveal() {
setKnown(true);
}
void setKnown(final boolean known) {
this.known=known;
}

View File

@ -38,6 +38,9 @@ public class MagicMiracleTrigger extends MagicWhenDrawnTrigger {
final Object[] choiceResults) {
if (MagicMayChoice.isYesChoice(choiceResults[0])) {
final MagicCard card = event.getCard();
card.reveal();
final MagicActivation act = card.getCardDefinition().getCastActivation();
game.addEvent(act.getEvent(card));
}