mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
Added Explore event
This commit is contained in:
parent
01f7914f54
commit
97e34dab49
2 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue