mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Added RememberAll,RememberWinner,RememberLoser to Flip AF
Modified Crazed Firecat to add counter after all the flips
This commit is contained in:
@@ -4,9 +4,11 @@ Types:Creature Elemental Cat
|
||||
Text:no text
|
||||
PT:4/4
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigFlip | TriggerDescription$ When CARDNAME enters the battlefield, flip a coin until you lose a flip. Put a +1/+1 counter on CARDNAME for each flip you win.
|
||||
SVar:TrigFlip:AB$ FlipACoin | Cost$ 0 | WinSubAbility$ DBPutCounter
|
||||
SVar:DBPutCounter:DB$ PutCounter | Cost$ 0 | Defined$ Self | CounterType$ P1P1 | CounterNum$ 1 | SubAbility$ DBFlipAgain
|
||||
SVar:DBFlipAgain:DB$ FlipACoin | Cost$ 0 | WinSubAbility$ DBPutCounter
|
||||
SVar:TrigFlip:AB$ FlipACoin | Cost$ 0 | WinSubAbility$ DBFlipAgain | RememberWinner$ True
|
||||
SVar:DBFlipAgain:DB$ FlipACoin | Cost$ 0 | WinSubAbility$ DBFlipAgain | LoseSubAbility$ DBPutCounter | RememberWinner$ True
|
||||
SVar:DBPutCounter:DB$ PutCounter | Cost$ 0 | Defined$ Self | CounterType$ P1P1 | CounterNum$ X | SubAbility$ DBCleanUp
|
||||
SVar:DBCleanUp:DB$Cleanup | ClearRemembered$ True
|
||||
SVar:X:Remembered$Amount
|
||||
SVar:Rarity:Uncommon
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/crazed_firecat.jpg
|
||||
SetInfo:TOR|Uncommon|http://magiccards.info/scans/en/tr/94.jpg
|
||||
|
||||
@@ -355,8 +355,14 @@ public class AbilityFactory_Clash {
|
||||
//Run triggers
|
||||
//HashMap<String,Object> runParams = new HashMap<String,Object>();
|
||||
//runParams.put("Player", player);
|
||||
if (params.get("RememberAll") != null){
|
||||
host.addRemembered(host);
|
||||
}
|
||||
|
||||
if (victory) {
|
||||
if (params.get("RememberWinner") != null){
|
||||
host.addRemembered(host);
|
||||
}
|
||||
if (params.containsKey("WinSubAbility")) {
|
||||
SpellAbility win = AF_Outcomes.getAbility(host.getSVar(params.get("WinSubAbility")), host);
|
||||
win.setActivatingPlayer(player);
|
||||
@@ -367,6 +373,9 @@ public class AbilityFactory_Clash {
|
||||
//runParams.put("Won","True");
|
||||
}
|
||||
else {
|
||||
if (params.get("RememberLoser") != null){
|
||||
host.addRemembered(host);
|
||||
}
|
||||
if(params.containsKey("LoseSubAbility")) {
|
||||
SpellAbility lose = AF_Outcomes.getAbility(host.getSVar(params.get("LoseSubAbility")), host);
|
||||
lose.setActivatingPlayer(player);
|
||||
|
||||
Reference in New Issue
Block a user