mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[LCI] Implement Nicanzil, Current Conductor
This commit is contained in:
parent
fed4b0a4b5
commit
1388972d4c
5 changed files with 121 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
22
Mage/src/main/java/mage/game/events/ExploredEvent.java
Normal file
22
Mage/src/main/java/mage/game/events/ExploredEvent.java
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue