[LCI] Implement Nicanzil, Current Conductor

This commit is contained in:
theelk801 2023-10-30 10:24:19 -04:00
parent fed4b0a4b5
commit 1388972d4c
5 changed files with 121 additions and 1 deletions

View file

@ -10,6 +10,7 @@ import mage.constants.Outcome;
import mage.constants.Zone;
import mage.counters.CounterType;
import mage.game.Game;
import mage.game.events.ExploredEvent;
import mage.game.events.GameEvent;
import mage.game.permanent.Permanent;
import mage.players.Player;
@ -99,7 +100,7 @@ public class ExploreSourceEffect extends OneShotEffect {
game.getState().processAction(game);
// 701.40b A permanent explores after the process described in rule 701.40a is complete, even if some or all of
// those actions were impossible.
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.EXPLORED, permanentId, source, permanent.getControllerId()));
game.fireEvent(new ExploredEvent(permanent, source, card));
}
return true;
}

View file

@ -0,0 +1,22 @@
package mage.game.events;
import mage.abilities.Ability;
import mage.cards.Card;
import mage.game.permanent.Permanent;
/**
* @author TheElk801
*/
public class ExploredEvent extends GameEvent {
private final Card card;
public ExploredEvent(Permanent permanent, Ability source, Card card) {
super(EventType.EXPLORED, permanent.getId(), source, permanent.getControllerId());
this.card = card;
}
public Card getCard() {
return card;
}
}