mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Combine GreatestPowerYouControl and GreatestPowerYouDontControl
This commit is contained in:
@@ -3,7 +3,7 @@ ManaCost:2 B
|
|||||||
Types:Enchantment
|
Types:Enchantment
|
||||||
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigCruelDiscard | TriggerDescription$ At the beginning of your upkeep, target opponent discards a card if you control the creature with the greatest power or tied for the greatest power.
|
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigCruelDiscard | TriggerDescription$ At the beginning of your upkeep, target opponent discards a card if you control the creature with the greatest power or tied for the greatest power.
|
||||||
SVar:TrigCruelDiscard:AB$Discard | Cost$ 0 | ValidTgts$ Opponent | NumCards$ 1 | Mode$ TgtChoose | ConditionPresent$ Creature | ConditionCompare$ GE1 | ConditionCheckSVar$ YourCruelty | ConditionSVarCompare$ GEOppsCruelty | References$ YourCruelty,OppsCruelty
|
SVar:TrigCruelDiscard:AB$Discard | Cost$ 0 | ValidTgts$ Opponent | NumCards$ 1 | Mode$ TgtChoose | ConditionPresent$ Creature | ConditionCompare$ GE1 | ConditionCheckSVar$ YourCruelty | ConditionSVarCompare$ GEOppsCruelty | References$ YourCruelty,OppsCruelty
|
||||||
SVar:YourCruelty:Count$GreatestPowerYouControl
|
SVar:YourCruelty:Count$GreatestPower_Creature.YouCtrl
|
||||||
SVar:OppsCruelty:Count$GreatestPowerYouDontControl
|
SVar:OppsCruelty:Count$GreatestPower_Creature.YouDontCtrl
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/triumph_of_cruelty.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/triumph_of_cruelty.jpg
|
||||||
Oracle:At the beginning of your upkeep, target opponent discards a card if you control the creature with the greatest power or tied for the greatest power.
|
Oracle:At the beginning of your upkeep, target opponent discards a card if you control the creature with the greatest power or tied for the greatest power.
|
||||||
@@ -3,7 +3,7 @@ ManaCost:2 G
|
|||||||
Types:Enchantment
|
Types:Enchantment
|
||||||
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigFerociousDraw | TriggerDescription$ At the beginning of your upkeep, draw a card if you control the creature with the greatest power or tied for the greatest power.
|
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigFerociousDraw | TriggerDescription$ At the beginning of your upkeep, draw a card if you control the creature with the greatest power or tied for the greatest power.
|
||||||
SVar:TrigFerociousDraw:AB$ Draw | Cost$ 0 | Defined$ You | NumCards$ 1 | ConditionPresent$ Creature | ConditionCompare$ GE1 | ConditionCheckSVar$ YourFerocity | ConditionSVarCompare$ GEOppsFerocity | References$ YourFerocity,OppsFerocity
|
SVar:TrigFerociousDraw:AB$ Draw | Cost$ 0 | Defined$ You | NumCards$ 1 | ConditionPresent$ Creature | ConditionCompare$ GE1 | ConditionCheckSVar$ YourFerocity | ConditionSVarCompare$ GEOppsFerocity | References$ YourFerocity,OppsFerocity
|
||||||
SVar:YourFerocity:Count$GreatestPowerYouControl
|
SVar:YourFerocity:Count$GreatestPower_Creature.YouCtrl
|
||||||
SVar:OppsFerocity:Count$GreatestPowerYouDontControl
|
SVar:OppsFerocity:Count$GreatestPower_Creature.YouDontCtrl
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/triumph_of_ferocity.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/triumph_of_ferocity.jpg
|
||||||
Oracle:At the beginning of your upkeep, draw a card if you control the creature with the greatest power or tied for the greatest power.
|
Oracle:At the beginning of your upkeep, draw a card if you control the creature with the greatest power or tied for the greatest power.
|
||||||
@@ -987,21 +987,12 @@ public class CardFactoryUtil {
|
|||||||
if (l[0].startsWith("ImprintedCardToughness") && !c.getImprinted().isEmpty()) return c.getImprinted().get(0).getNetDefense();
|
if (l[0].startsWith("ImprintedCardToughness") && !c.getImprinted().isEmpty()) return c.getImprinted().get(0).getNetDefense();
|
||||||
if (l[0].startsWith("ImprintedCardManaCost") && !c.getImprinted().isEmpty()) return c.getImprinted().get(0).getCMC();
|
if (l[0].startsWith("ImprintedCardManaCost") && !c.getImprinted().isEmpty()) return c.getImprinted().get(0).getCMC();
|
||||||
|
|
||||||
if (l[0].startsWith("GreatestPowerYouControl")) {
|
if (l[0].startsWith("GreatestPower_")) {
|
||||||
|
final String restriction = l[0].substring(14);
|
||||||
|
final String[] rest = restriction.split(",");
|
||||||
|
List<Card> list = CardLists.getValidCards(cc.getGame().getCardsIn(ZoneType.Battlefield), rest, cc, c);
|
||||||
int highest = 0;
|
int highest = 0;
|
||||||
for (final Card crd : c.getController().getCreaturesInPlay()) {
|
for (final Card crd : list) {
|
||||||
if (crd.getNetAttack() > highest) {
|
|
||||||
highest = crd.getNetAttack();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return highest;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (l[0].startsWith("GreatestPowerYouDontControl")) {
|
|
||||||
int highest = 0;
|
|
||||||
for (final Card crd : c.getController().getGame().getCardsIn(ZoneType.Battlefield)) {
|
|
||||||
if (!crd.isCreature() || crd.getController() == c.getController())
|
|
||||||
continue;
|
|
||||||
if (crd.getNetAttack() > highest) {
|
if (crd.getNetAttack() > highest) {
|
||||||
highest = crd.getNetAttack();
|
highest = crd.getNetAttack();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user