mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 14:02:05 -08:00
[LCI] Implement Curator of Sun's Creation
This commit is contained in:
parent
77408164f1
commit
bc335b949b
6 changed files with 155 additions and 2 deletions
|
|
@ -12,6 +12,7 @@ import mage.filter.FilterCard;
|
|||
import mage.filter.common.FilterNonlandCard;
|
||||
import mage.filter.predicate.mageobject.ManaValuePredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.DiscoverEvent;
|
||||
import mage.players.Player;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
|
|
@ -82,6 +83,7 @@ public class DiscoverEffect extends OneShotEffect {
|
|||
}
|
||||
cards.retainZone(Zone.EXILED, game);
|
||||
player.putCardsOnBottomOfLibrary(cards, game, source, false);
|
||||
game.fireEvent(new DiscoverEvent(source, player.getId(), amount));
|
||||
return card;
|
||||
}
|
||||
}
|
||||
}
|
||||
14
Mage/src/main/java/mage/game/events/DiscoverEvent.java
Normal file
14
Mage/src/main/java/mage/game/events/DiscoverEvent.java
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package mage.game.events;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public class DiscoverEvent extends GameEvent {
|
||||
public DiscoverEvent(Ability source, UUID playerId, int amount) {
|
||||
super(EventType.DISCOVER, null, source, playerId, amount, false);
|
||||
}
|
||||
}
|
||||
|
|
@ -528,10 +528,18 @@ public class GameEvent implements Serializable {
|
|||
targetId player making the choice
|
||||
sourceId sourceId of the ability forcing the choice
|
||||
playerId controller of the ability forcing the choice
|
||||
amount numner of times choice is repeated
|
||||
amount number of times choice is repeated
|
||||
flag not used for this event
|
||||
*/
|
||||
FACE_VILLAINOUS_CHOICE,
|
||||
/* DISCOVER
|
||||
targetId not used for this event
|
||||
sourceId sourceId of the ability discovering
|
||||
playerId controller of the ability
|
||||
amount discover value
|
||||
flag not used for this event
|
||||
*/
|
||||
DISCOVER,
|
||||
//custom events
|
||||
CUSTOM_EVENT
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue