Added Explore event

This commit is contained in:
Evan Kranzler 2017-09-05 10:15:40 -04:00
parent 01f7914f54
commit 97e34dab49
2 changed files with 3 additions and 0 deletions

View file

@ -39,6 +39,7 @@ import mage.counters.CounterType;
import mage.filter.FilterCard;
import mage.filter.predicate.mageobject.CardTypePredicate;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.game.permanent.Permanent;
import mage.players.Player;
@ -75,6 +76,7 @@ public class ExploreSourceEffect extends OneShotEffect {
if (player == null) {
return false;
}
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.EXPLORED, source.getSourceId(), source.getSourceId(), source.getControllerId()));
if (player.getLibrary().hasCards()) {
Card card = player.getLibrary().getFromTop(game);
Cards cards = new CardsImpl();

View file

@ -91,6 +91,7 @@ public class GameEvent implements Serializable {
EMPTY_DRAW,
DRAW_CARDS, // applies to an instruction to draw more than one card before any replacement effects apply to individual cards drawn
DRAW_CARD, DREW_CARD,
EXPLORED,
MIRACLE_CARD_REVEALED,
MADNESS_CARD_EXILED,
INVESTIGATED,