- Added Equipoise

This commit is contained in:
swordshine
2014-05-27 12:51:56 +00:00
parent df0e320a5f
commit c07f8d5e9b
4 changed files with 34 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -4801,6 +4801,7 @@ forge-gui/res/cardsfolder/e/epiphany_storm.txt -text
forge-gui/res/cardsfolder/e/epochrasite.txt -text forge-gui/res/cardsfolder/e/epochrasite.txt -text
forge-gui/res/cardsfolder/e/equal_treatment.txt -text forge-gui/res/cardsfolder/e/equal_treatment.txt -text
forge-gui/res/cardsfolder/e/equilibrium.txt svneol=native#text/plain forge-gui/res/cardsfolder/e/equilibrium.txt svneol=native#text/plain
forge-gui/res/cardsfolder/e/equipoise.txt -text
forge-gui/res/cardsfolder/e/eradicate.txt svneol=native#text/plain forge-gui/res/cardsfolder/e/eradicate.txt svneol=native#text/plain
forge-gui/res/cardsfolder/e/erase.txt svneol=native#text/plain forge-gui/res/cardsfolder/e/erase.txt svneol=native#text/plain
forge-gui/res/cardsfolder/e/erayo_soratami_ascendant_erayos_essence.txt -text forge-gui/res/cardsfolder/e/erayo_soratami_ascendant_erayos_essence.txt -text

View File

@@ -59,6 +59,10 @@ public class ChooseCardEffect extends SpellAbilityEffect {
final String numericAmount = sa.getParamOrDefault("Amount", "1"); final String numericAmount = sa.getParamOrDefault("Amount", "1");
final int validAmount = StringUtils.isNumeric(numericAmount) ? Integer.parseInt(numericAmount) : CardFactoryUtil.xCount(host, host.getSVar(numericAmount)); final int validAmount = StringUtils.isNumeric(numericAmount) ? Integer.parseInt(numericAmount) : CardFactoryUtil.xCount(host, host.getSVar(numericAmount));
if (validAmount <= 0) {
return;
}
for (final Player p : tgtPlayers) { for (final Player p : tgtPlayers) {
if (sa.hasParam("EachBasicType")) { if (sa.hasParam("EachBasicType")) {
// Get all lands, // Get all lands,

View File

@@ -38,6 +38,9 @@ public class CleanUpEffect extends SpellAbilityEffect {
if (sa.hasParam("ClearCoinFlips")) { if (sa.hasParam("ClearCoinFlips")) {
source.clearFlipResult(); source.clearFlipResult();
} }
if (sa.hasParam("ClearChosenCard")) {
source.getChosenCard().clear();
}
} }
} }

View File

@@ -0,0 +1,26 @@
Name:Equipoise
ManaCost:2 W
Types:Enchantment
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigEquipoise | TriggerDescription$ At the beginning of your upkeep, for each land target player controls in excess of the number you control, choose a land he or she controls, then the chosen permanents phase out. Repeat this process for artifacts and creatures. (While they're phased out, they're treated as though they don't exist. They phase in before that player untaps during his or her next untap step.)
SVar:TrigEquipoise:AB$ Pump | Cost$ 0 | ValidTgts$ Player | IsCurse$ True | RememberTargets$ True | SubAbility$ ChooseLand
SVar:ChooseLand:DB$ ChooseCard | Choices$ Land.TargetedPlayerCtrl | Mandatory$ True | Amount$ LandX | ChoiceTitle$ Choose a land that player controls | SubAbility$ PhasesLand | References$ LandX,OppLand,YourLand,ExcessLand
SVar:PhasesLand:DB$ Phases | Defined$ ChosenCard | SubAbility$ ChooseArtifact
SVar:ChooseArtifact:DB$ ChooseCard | Choices$ Artifact.TargetedPlayerCtrl | Mandatory$ True | Amount$ ArtifactX | ChoiceTitle$ Choose a artifact that player controls | SubAbility$ PhasesArtifact | References$ ArtifactX,OppArtifact,YourArtifact,ExcessArtifact
SVar:PhasesArtifact:DB$ Phases | Defined$ ChosenCard | SubAbility$ ChooseCreature
SVar:ChooseCreature:DB$ ChooseCard | Choices$ Creature.TargetedPlayerCtrl | Mandatory$ True | Amount$ CreatureX | ChoiceTitle$ Choose a creature that player controls | SubAbility$ PhasesCreature | References$ CreatureX,OppCreature,YourCreature,ExcessCreature
SVar:PhasesCreature:DB$ Phases | Defined$ ChosenCard | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearChosenCard$ True | ClearRemembered$ True
SVar:LandX:SVar$ExcessLand/LimitMin.0
SVar:OppLand:Count$Valid Land.RememberedPlayerCtrl
SVar:YourLand:Count$Valid Land.YouCtrl
SVar:ExcessLand:SVar$OppLand/Minus.YourLand
SVar:ArtifactX:SVar$ExcessArtifact/LimitMin.0
SVar:OppArtifact:Count$Valid Artifact.RememberedPlayerCtrl
SVar:YourArtifact:Count$Valid Artifact.YouCtrl
SVar:ExcessArtifact:SVar$OppArtifact/Minus.YourArtifact
SVar:CreatureX:SVar$ExcessCreature/LimitMin.0
SVar:OppCreature:Count$Valid Creature.RememberedPlayerCtrl
SVar:YourCreature:Count$Valid Creature.YouCtrl
SVar:ExcessCreature:SVar$OppCreature/Minus.YourCreature
SVar:Picture:http://www.wizards.com/global/images/magic/general/equipoise.jpg
Oracle:At the beginning of your upkeep, for each land target player controls in excess of the number you control, choose a land he or she controls, then the chosen permanents phase out. Repeat this process for artifacts and creatures. (While they're phased out, they're treated as though they don't exist. They phase in before that player untaps during his or her next untap step.)