mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
*Converted Felidar Sovereign and Test of Endurance to script.
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
Name:Felidar Sovereign
|
Name:Felidar Sovereign
|
||||||
ManaCost:4 W W
|
ManaCost:4 W W
|
||||||
Types:Creature Cat Beast
|
Types:Creature Cat Beast
|
||||||
Text:At the beginning of your upkeep, if you have 40 or more life, you win the game.
|
Text:no text
|
||||||
PT:4/6
|
PT:4/6
|
||||||
K:Vigilance
|
K:Vigilance
|
||||||
K:Lifelink
|
K:Lifelink
|
||||||
|
T:Mode$Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | LifeTotal$ You | LifeAmount$ GE40 | Execute$ TrigWin | TriggerDescription$ At the beginning of your upkeep, if you have 40 or more life, you win the game.
|
||||||
|
SVar:TrigWin:AB$WinsGame | Cost$ 0 | Defined$ You
|
||||||
SVar:Rarity:Mythic
|
SVar:Rarity:Mythic
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/felidar_sovereign.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/felidar_sovereign.jpg
|
||||||
SetInfo:ZEN|Mythic|http://magiccards.info/scans/en/zen/12.jpg
|
SetInfo:ZEN|Mythic|http://magiccards.info/scans/en/zen/12.jpg
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
Name:Test of Endurance
|
Name:Test of Endurance
|
||||||
ManaCost:2 W W
|
ManaCost:2 W W
|
||||||
Types:Enchantment
|
Types:Enchantment
|
||||||
Text:At the beginning of your upkeep, if you have 50 or more life, you win the game.
|
Text:no text
|
||||||
|
T:Mode$Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | LifeTotal$ You | LifeAmount$ GE50 | Execute$ TrigWin | TriggerDescription$ At the beginning of your upkeep, if you have 50 or more life, you win the game.
|
||||||
|
SVar:TrigWin:AB$WinsGame | Cost$ 0 | Defined$ You
|
||||||
SVar:RemRandomDeck:True
|
SVar:RemRandomDeck:True
|
||||||
SVar:Rarity:Rare
|
SVar:Rarity:Rare
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/test_of_endurance.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/test_of_endurance.jpg
|
||||||
|
|||||||
@@ -117,10 +117,8 @@ public class Upkeep implements java.io.Serializable {
|
|||||||
//Win / Lose
|
//Win / Lose
|
||||||
// Checks for can't win or can't lose happen in Player.altWinConditionMet()
|
// Checks for can't win or can't lose happen in Player.altWinConditionMet()
|
||||||
|
|
||||||
upkeep_Test_of_Endurance();
|
|
||||||
upkeep_Helix_Pinnacle();
|
upkeep_Helix_Pinnacle();
|
||||||
upkeep_Barren_Glory();
|
upkeep_Barren_Glory();
|
||||||
upkeep_Felidar_Sovereign();
|
|
||||||
|
|
||||||
upkeep_Karma();
|
upkeep_Karma();
|
||||||
upkeep_Oath_of_Druids();
|
upkeep_Oath_of_Druids();
|
||||||
@@ -2320,34 +2318,6 @@ public class Upkeep implements java.io.Serializable {
|
|||||||
} // for
|
} // for
|
||||||
} // upkeep_Power_Surge()
|
} // upkeep_Power_Surge()
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>upkeep_Felidar_Sovereign.</p>
|
|
||||||
*/
|
|
||||||
private static void upkeep_Felidar_Sovereign() {
|
|
||||||
final Player player = AllZone.getPhase().getPlayerTurn();
|
|
||||||
|
|
||||||
CardList list = player.getCardsIn(Zone.Battlefield, "Felidar Sovereign");
|
|
||||||
|
|
||||||
if (0 < list.size() && player.getLife() >= 40) {
|
|
||||||
final Card source = list.get(0);
|
|
||||||
Ability ability = new Ability(source, "0") {
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
if (player.getLife() >= 40) {
|
|
||||||
player.altWinBySpellEffect(source.getName());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}; // Ability
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("Felidar Sovereign - ").append(player).append(" wins the game");
|
|
||||||
ability.setStackDescription(sb.toString());
|
|
||||||
|
|
||||||
AllZone.getStack().addSimultaneousStackEntry(ability);
|
|
||||||
|
|
||||||
} // if
|
|
||||||
} // upkeep_Felidar_Sovereign
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>upkeep_Helix_Pinnacle.</p>
|
* <p>upkeep_Helix_Pinnacle.</p>
|
||||||
*/
|
*/
|
||||||
@@ -2379,38 +2349,6 @@ public class Upkeep implements java.io.Serializable {
|
|||||||
} // if
|
} // if
|
||||||
} // upkeep_Helix_Pinnacle
|
} // upkeep_Helix_Pinnacle
|
||||||
|
|
||||||
/**
|
|
||||||
* <p>upkeep_Test_of_Endurance.</p>
|
|
||||||
*/
|
|
||||||
private static void upkeep_Test_of_Endurance() {
|
|
||||||
/*
|
|
||||||
* At the beginning of your upkeep, if you have 50 or more life, you win the game.
|
|
||||||
*/
|
|
||||||
final Player player = AllZone.getPhase().getPlayerTurn();
|
|
||||||
|
|
||||||
CardList list = player.getCardsIn(Zone.Battlefield, "Test of Endurance");
|
|
||||||
|
|
||||||
if (0 < list.size() && player.getLife() >= 50) {
|
|
||||||
final Card source = list.get(0);
|
|
||||||
Ability ability = new Ability(source, "0") {
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
if (player.getLife() >= 50) {
|
|
||||||
player.altWinBySpellEffect(source.getName());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}; // Ability
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append(list.get(0)).append(" - ").append(player).append(" wins the game");
|
|
||||||
ability.setStackDescription(sb.toString());
|
|
||||||
|
|
||||||
AllZone.getStack().addSimultaneousStackEntry(ability);
|
|
||||||
|
|
||||||
} // if
|
|
||||||
} // upkeep_Test_of_Endurance
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>upkeep_Barren_Glory.</p>
|
* <p>upkeep_Barren_Glory.</p>
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user