mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
[CLB] Implemented Zellix, Sanity Flayer
This commit is contained in:
parent
da6e5260ec
commit
e22648a385
6 changed files with 152 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
24
Mage/src/main/java/mage/game/events/MilledCardsEvent.java
Normal file
24
Mage/src/main/java/mage/game/events/MilledCardsEvent.java
Normal 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;
|
||||
}
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue