- Added Game of Chaos

This commit is contained in:
swordshine
2014-04-05 06:39:18 +00:00
parent 96338eb652
commit aabb5888fe
3 changed files with 23 additions and 1 deletions

1
.gitattributes vendored
View File

@@ -4992,6 +4992,7 @@ forge-gui/res/cardsfolder/g/galvanic_juggernaut.txt -text
forge-gui/res/cardsfolder/g/galvanic_key.txt svneol=native#text/plain
forge-gui/res/cardsfolder/g/galvanoth.txt -text
forge-gui/res/cardsfolder/g/gamble.txt svneol=native#text/plain
forge-gui/res/cardsfolder/g/game_of_chaos.txt -text
forge-gui/res/cardsfolder/g/game_preserve.txt -text
forge-gui/res/cardsfolder/g/game_trail_changeling.txt svneol=native#text/plain
forge-gui/res/cardsfolder/g/gamekeeper.txt -text

View File

@@ -123,7 +123,10 @@ public class RepeatEffect extends SpellAbilityEffect {
}
if (sa.hasParam("RepeatOptional")) {
return sa.getActivatingPlayer().getController().confirmAction(sa, null, "Do you want to repeat this process again?");
Player decider = sa.hasParam("RepeatOptionalDecider")
? AbilityUtils.getDefinedPlayers(sa.getHostCard(), sa.getParam("RepeatOptionalDecider"), sa).get(0)
: sa.getActivatingPlayer();
return decider.getController().confirmAction(sa, null, "Do you want to repeat this process again?");
}
return true;

View File

@@ -0,0 +1,18 @@
Name:Game of Chaos
ManaCost:R R R
Types:Sorcery
A:SP$ Repeat | Cost$ R R R | ValidTgts$ Opponent | IsCurse$ True | StackDescription$ SpellDescription | RepeatOptional$ True | RepeatSubAbility$ DBCleanup | RepeatOptionalDecider$ Remembered | SubAbility$ DBRestore | SpellDescription$ Flip a coin. If you win the flip, you gain 1 life and target opponent loses 1 life, and you decide whether to flip again. If you lose the flip, you lose 1 life and that opponent gains 1 life, and that player decides whether to flip again. Double the life stakes with each flip.
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True | SubAbility$ DBFlip
SVar:DBFlip:DB$ FlipACoin | Caller$ You | WinSubAbility$ GainlifeYou | LoseSubAbility$ GainlifeOpp | SubAbility$ DoubleLifeStake
SVar:GainlifeYou:DB$ GainLife | Defined$ You | LifeAmount$ NumLife | SubAbility$ LoseLifeOpp
SVar:LoseLifeOpp:DB$ LoseLife | Defined$ Targeted | LifeAmount$ NumLife | SubAbility$ RememberYou
SVar:RememberYou:DB$ Pump | RememberObjects$ You
SVar:GainlifeOpp:DB$ GainLife | Defined$ Targeted | LifeAmount$ NumLife | SubAbility$ LoseLifeYou
SVar:LoseLifeYou:DB$ LoseLife | Defined$ You | LifeAmount$ NumLife | SubAbility$ RememberOpp
SVar:RememberOpp:DB$ Pump | RememberObjects$ Targeted
SVar:DoubleLifeStake:DB$ StoreSVar | SVar$ NumLife | References$ NumLife | Type$ CountSVar | Expression$ NumLife/Times.2
SVar:DBRestore:DB$ StoreSVar | SVar$ NumLife | References$ NumLife | Type$ Number | Expression$ 1
SVar:NumLife:Number$1
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/game_of_chaos.jpg
Oracle:Flip a coin. If you win the flip, you gain 1 life and target opponent loses 1 life, and you decide whether to flip again. If you lose the flip, you lose 1 life and that opponent gains 1 life, and that player decides whether to flip again. Double the life stakes with each flip.