Advanced Search for Artists (#1419)

* Advanced Search for Artists

* Clean up

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.59>
This commit is contained in:
tool4ever
2022-08-29 14:45:09 +00:00
committed by GitHub
parent 1aaeeab25d
commit b4c81fd154
13 changed files with 18 additions and 9 deletions

View File

@@ -433,10 +433,6 @@ public class CostAdjustment {
if (!st.matchesValidParam("Activator", activator)) { if (!st.matchesValidParam("Activator", activator)) {
return false; return false;
} }
if (st.hasParam("NonActivatorTurn") && (activator == null
|| game.getPhaseHandler().isPlayerTurn(activator))) {
return false;
}
if (st.hasParam("Type")) { if (st.hasParam("Type")) {
final String type = st.getParam("Type"); final String type = st.getParam("Type");

View File

@@ -49,11 +49,11 @@ public class PlayerProperty {
return false; return false;
} }
} else if (property.equals("Active")) { } else if (property.equals("Active")) {
if (!player.equals(game.getPhaseHandler().getPlayerTurn())) { if (!game.getPhaseHandler().isPlayerTurn(player)) {
return false; return false;
} }
} else if (property.equals("NonActive")) { } else if (property.equals("NonActive")) {
if (player.equals(game.getPhaseHandler().getPlayerTurn())) { if (game.getPhaseHandler().isPlayerTurn(player)) {
return false; return false;
} }
} else if (property.equals("OpponentToActive")) { } else if (property.equals("OpponentToActive")) {

View File

@@ -1,6 +1,6 @@
Name:Defense Grid Name:Defense Grid
ManaCost:2 ManaCost:2
Types:Artifact Types:Artifact
S:Mode$ RaiseCost | Activator$ Player | Type$ Spell | Amount$ 3 | NonActivatorTurn$ True | Description$ Each spell costs {3} more to cast except during its controller's turn. S:Mode$ RaiseCost | Activator$ Player.NonActive | Type$ Spell | Amount$ 3 | Description$ Each spell costs {3} more to cast except during its controller's turn.
AI:RemoveDeck:Random AI:RemoveDeck:Random
Oracle:Each spell costs {3} more to cast except during its controller's turn. Oracle:Each spell costs {3} more to cast except during its controller's turn.

View File

@@ -3,6 +3,6 @@ ManaCost:2 W W
Types:Enchantment Types:Enchantment
K:ETBReplacement:Other:ChooseCT K:ETBReplacement:Other:ChooseCT
SVar:ChooseCT:DB$ ChooseType | Type$ Creature | AILogic$ MostProminentInComputerDeck | SpellDescription$ As CARDNAME enters the battlefield, choose a creature type. SVar:ChooseCT:DB$ ChooseType | Type$ Creature | AILogic$ MostProminentInComputerDeck | SpellDescription$ As CARDNAME enters the battlefield, choose a creature type.
S:Mode$ Continuous | Affected$ Creature.ChosenType+YouCtrl+counters_GE1_DIVINITY | AddKeyword$ Indestructible | Description$ Each creature you control with a divinity counter on it has indestructible. S:Mode$ Continuous | Affected$ Creature.YouCtrl+counters_GE1_DIVINITY | AddKeyword$ Indestructible | Description$ Each creature you control with a divinity counter on it has indestructible.
A:AB$ PutCounter | Cost$ 1 W | ValidTgts$ Creature.ChosenType+YouCtrl | TgtPrompt$ Select target creature you control of the chosen type | CounterType$ DIVINITY | CounterNum$ 1 | SpellDescription$ Put a divinity counter on target creature you control of the chosen type. A:AB$ PutCounter | Cost$ 1 W | ValidTgts$ Creature.ChosenType+YouCtrl | TgtPrompt$ Select target creature you control of the chosen type | CounterType$ DIVINITY | CounterNum$ 1 | SpellDescription$ Put a divinity counter on target creature you control of the chosen type.
Oracle:As Kindred Boon enters the battlefield, choose a creature type.\n{1}{W}: Put a divinity counter on target creature you control of the chosen type.\nEach creature you control with a divinity counter on it has indestructible. Oracle:As Kindred Boon enters the battlefield, choose a creature type.\n{1}{W}: Put a divinity counter on target creature you control of the chosen type.\nEach creature you control with a divinity counter on it has indestructible.

View File

@@ -1,5 +1,5 @@
Name:Dihada, Binder of Wills Name:Dihada, Binder of Wills
ManaCost:3 R W B ManaCost:1 R W B
Types:Legendary Planeswalker Dihada Types:Legendary Planeswalker Dihada
Loyalty:5 Loyalty:5
Text:CARDNAME can be your commander. Text:CARDNAME can be your commander.

View File

@@ -2241,6 +2241,7 @@ lblSubtype=Untertyp
lblGenericCost=Generische Kosten lblGenericCost=Generische Kosten
lblManaCost=Mana-Kosten lblManaCost=Mana-Kosten
lblFirstPrinting=Erstdruck lblFirstPrinting=Erstdruck
lblArtist=Artist
lblAverageCMC=Durchschnittlicher Manabetrag lblAverageCMC=Durchschnittlicher Manabetrag
lblMainDeck=Hauptdeck lblMainDeck=Hauptdeck
lblMainDeckSize=Größe Hauptdeck lblMainDeckSize=Größe Hauptdeck

View File

@@ -2239,6 +2239,7 @@ lblSubtype=Subtype
lblGenericCost=Generic Cost lblGenericCost=Generic Cost
lblManaCost=Mana Cost lblManaCost=Mana Cost
lblFirstPrinting=First Printing lblFirstPrinting=First Printing
lblArtist=Artist
lblAverageCMC=Average Mana Value lblAverageCMC=Average Mana Value
lblMainDeck=Main Deck lblMainDeck=Main Deck
lblMainDeckSize=Main Deck Size lblMainDeckSize=Main Deck Size

View File

@@ -2239,6 +2239,7 @@ lblSubtype=Subtipo
lblGenericCost=Coste Genérico lblGenericCost=Coste Genérico
lblManaCost=Coste de maná lblManaCost=Coste de maná
lblFirstPrinting=Primera impresión lblFirstPrinting=Primera impresión
lblArtist=Artist
lblAverageCMC=Media de CMC lblAverageCMC=Media de CMC
lblMainDeck=Mazo principal lblMainDeck=Mazo principal
lblMainDeckSize=Tamaño del mazo principal lblMainDeckSize=Tamaño del mazo principal

View File

@@ -2238,6 +2238,7 @@ lblSubtype=Sottotipo
lblGenericCost=Costo generico lblGenericCost=Costo generico
lblManaCost=Costo di mana lblManaCost=Costo di mana
lblFirstPrinting=Prima stampa lblFirstPrinting=Prima stampa
lblArtist=Artist
lblAverageCMC=CMC medio lblAverageCMC=CMC medio
lblMainDeck=Mazzo lblMainDeck=Mazzo
lblMainDeckSize=Dimensione del mazzo lblMainDeckSize=Dimensione del mazzo

View File

@@ -2238,6 +2238,7 @@ lblSubtype=サブタイプ
lblGenericCost=不特定コスト lblGenericCost=不特定コスト
lblManaCost=マナコスト lblManaCost=マナコスト
lblFirstPrinting=初版 lblFirstPrinting=初版
lblArtist=Artist
lblAverageCMC=マナ総量平均 lblAverageCMC=マナ総量平均
lblMainDeck=メインデッキ lblMainDeck=メインデッキ
lblMainDeckSize=メインデッキ枚数 lblMainDeckSize=メインデッキ枚数

View File

@@ -2308,6 +2308,7 @@ lblSubtype=Subtipo
lblGenericCost=Custo Genérico lblGenericCost=Custo Genérico
lblManaCost=Custo de Mana lblManaCost=Custo de Mana
lblFirstPrinting=Primeira Impressão lblFirstPrinting=Primeira Impressão
lblArtist=Artist
lblAverageCMC=Valor Médio de Mana lblAverageCMC=Valor Médio de Mana
lblMainDeck=Deck Principal lblMainDeck=Deck Principal
lblMainDeckSize=Tamanho do Deck Principal lblMainDeckSize=Tamanho do Deck Principal

View File

@@ -2240,6 +2240,7 @@ lblSubtype=副类别
lblGenericCost=无色费用 lblGenericCost=无色费用
lblManaCost=法术力费用 lblManaCost=法术力费用
lblFirstPrinting=第一次印刷 lblFirstPrinting=第一次印刷
lblArtist=Artist
lblAverageCMC=平均法术力值 lblAverageCMC=平均法术力值
lblMainDeck=主牌 lblMainDeck=主牌
lblMainDeckSize=主牌大小 lblMainDeckSize=主牌大小

View File

@@ -299,6 +299,12 @@ public class AdvancedSearch {
return cards.get(0) == input; return cards.get(0) == input;
} }
}), }),
CARD_ARTIST("lblArtist", PaperCard.class, FilterOperator.STRING_OPS, new StringEvaluator<PaperCard>() {
@Override
protected String getItemValue(PaperCard input) {
return input.getArtist();
}
}),
INVITEM_NAME("lblName", InventoryItem.class, FilterOperator.STRING_OPS, new StringEvaluator<InventoryItem>() { INVITEM_NAME("lblName", InventoryItem.class, FilterOperator.STRING_OPS, new StringEvaluator<InventoryItem>() {
@Override @Override
protected String getItemValue(InventoryItem input) { protected String getItemValue(InventoryItem input) {