Add Vantress Gargoyle

This commit is contained in:
swordshine
2019-09-15 19:23:55 +08:00
parent 86f344450d
commit 83c6473a7c
2 changed files with 20 additions and 0 deletions

View File

@@ -225,6 +225,15 @@ public class PlayerProperty {
if (!Expressions.compare(list.size(), comparator, y)) { if (!Expressions.compare(list.size(), comparator, y)) {
return false; return false;
} }
} else if (property.startsWith("HasCardsIn")) { // HasCardsIn[zonetype]_[cardtype]_[comparator]
final String[] type = property.substring(10).split("_");
final CardCollectionView list = CardLists.getValidCards(player.getCardsIn(ZoneType.smartValueOf(type[0])), type[1], sourceController, source);
String comparator = type[2];
String compareTo = comparator.substring(2);
int y = StringUtils.isNumeric(compareTo) ? Integer.parseInt(compareTo) : 0;
if (!Expressions.compare(list.size(), comparator, y)) {
return false;
}
} else if (property.startsWith("withMore")) { } else if (property.startsWith("withMore")) {
final String cardType = property.split("sThan")[0].substring(8); final String cardType = property.split("sThan")[0].substring(8);
final Player controller = "Active".equals(property.split("sThan")[1]) ? game.getPhaseHandler().getPlayerTurn() : sourceController; final Player controller = "Active".equals(property.split("sThan")[1]) ? game.getPhaseHandler().getPlayerTurn() : sourceController;

View File

@@ -0,0 +1,11 @@
Name:Vantress Gargoyle
ManaCost:1 U
Types:Artifact Creature Gargoyle
PT:5/4
K:Flying
S:Mode$ CantAttack | ValidCard$ Card.Self | UnlessDefender$ HasCardsInGraveyard_Card_GE7 | Description$ CARDNAME can't attack unless defending player has seven or more cards in their graveyard.
S:Mode$ Continuous | Affected$ Card.Self | AddHiddenKeyword$ CARDNAME can't block. | CheckSVar$ X | SVarCompare$ LT4 | Description$ CARDNAME can't block unless you have four or more cards in hand.
SVar:X:Count$InYourHand
A:AB$ Mill | Cost$ T | NumCards$ 1 | Defined$ Player | SpellDescription$ Each player puts the top card of their library into their graveyard.
AI:RemoveDeck:Random
Oracle:Flying\nVantress Gargoyle can't attack unless defending player has seven or more cards in their graveyard.\nVantress Gargoyle can't block unless you have four or more cards in hand.\n{T}: Each player puts the top card of their library into their graveyard.