[CLB] Implemented Zellix, Sanity Flayer

This commit is contained in:
Evan Kranzler 2022-05-31 18:06:29 -04:00
parent da6e5260ec
commit e22648a385
6 changed files with 152 additions and 0 deletions

View file

@ -102,6 +102,7 @@ public class GameEvent implements Serializable {
DAMAGE_PLAYER,
MILL_CARDS,
MILLED_CARD,
MILLED_CARDS,
/* DAMAGED_PLAYER
targetId the id of the damaged player
sourceId sourceId of the ability which caused the damage

View file

@ -0,0 +1,24 @@
package mage.game.events;
import mage.abilities.Ability;
import mage.cards.Cards;
import mage.cards.CardsImpl;
import java.util.UUID;
/**
* @author TheElk801
*/
public class MilledCardsEvent extends GameEvent {
private final Cards cards = new CardsImpl();
public MilledCardsEvent(Ability source, UUID playerId, Cards cards) {
super(EventType.MILLED_CARDS, playerId, source, playerId);
this.cards.addAll(cards);
}
public Cards getCards() {
return cards;
}
}

View file

@ -0,0 +1,32 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.constants.CardType;
import mage.constants.SubType;
import java.util.Arrays;
/**
* @author TheElk801
*/
public final class Horror2Token extends TokenImpl {
public Horror2Token() {
super("Horror Token", "1/1 black Horror creature token");
cardType.add(CardType.CREATURE);
color.setBlack(true);
subtype.add(SubType.HORROR);
power = new MageInt(1);
toughness = new MageInt(1);
availableImageSetCodes = Arrays.asList("CLB");
}
public Horror2Token(final Horror2Token token) {
super(token);
}
public Horror2Token copy() {
return new Horror2Token(this);
}
}

View file

@ -4852,6 +4852,7 @@ public abstract class PlayerImpl implements Player, Serializable {
for (Card card : cards.getCards(game)) {
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.MILLED_CARD, card.getId(), source, getId()));
}
game.fireEvent(new MilledCardsEvent(source, getId(), cards));
return cards;
}