forked from External/mage
[LCI] Implement The Skullspore Nexus (#11327)
This commit is contained in:
parent
59929d2860
commit
a37fc0589a
6 changed files with 283 additions and 50 deletions
|
|
@ -1,11 +1,12 @@
|
|||
package mage.game.events;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.cards.Card;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.permanent.PermanentToken;
|
||||
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
|
||||
/**
|
||||
* @author LevelX2
|
||||
|
|
@ -18,7 +19,7 @@ public class ZoneChangeGroupEvent extends GameEvent {
|
|||
private final Set<PermanentToken> tokens;
|
||||
/* added this */ Ability source;
|
||||
|
||||
public ZoneChangeGroupEvent(Set<Card> cards, Set<PermanentToken> tokens, UUID sourceId, Ability source, UUID playerId, Zone fromZone, Zone toZone) {
|
||||
public ZoneChangeGroupEvent(Set<Card> cards, Set<PermanentToken> tokens, UUID sourceId, Ability source, UUID playerId, Zone fromZone, Zone toZone) {
|
||||
super(GameEvent.EventType.ZONE_CHANGE_GROUP, null, null, playerId);
|
||||
this.fromZone = fromZone;
|
||||
this.toZone = toZone;
|
||||
|
|
@ -35,6 +36,10 @@ public class ZoneChangeGroupEvent extends GameEvent {
|
|||
return toZone;
|
||||
}
|
||||
|
||||
public boolean isDiesEvent() {
|
||||
return (toZone == Zone.GRAVEYARD && fromZone == Zone.BATTLEFIELD);
|
||||
}
|
||||
|
||||
public Set<Card> getCards() {
|
||||
return cards;
|
||||
}
|
||||
|
|
@ -42,7 +47,7 @@ public class ZoneChangeGroupEvent extends GameEvent {
|
|||
public Set<PermanentToken> getTokens() {
|
||||
return tokens;
|
||||
}
|
||||
|
||||
|
||||
public Ability getSource() {
|
||||
return source;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,29 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class FungusDinosaurToken extends TokenImpl {
|
||||
|
||||
public FungusDinosaurToken(int xValue) {
|
||||
super("Fungus Dinosaur Token", "X/X green Fungus Dinosaur creature token");
|
||||
cardType.add(CardType.CREATURE);
|
||||
subtype.add(SubType.FUNGUS);
|
||||
subtype.add(SubType.DINOSAUR);
|
||||
color.setGreen(true);
|
||||
power = new MageInt(xValue);
|
||||
toughness = new MageInt(xValue);
|
||||
}
|
||||
|
||||
private FungusDinosaurToken(final FungusDinosaurToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public FungusDinosaurToken copy() {
|
||||
return new FungusDinosaurToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue