*Converted Felidar Sovereign and Test of Endurance to script.

This commit is contained in:
Hellfish
2011-09-19 09:02:25 +00:00
parent bdbdba2dbd
commit 8c6baf3df9
3 changed files with 6 additions and 64 deletions

View File

@@ -1,10 +1,12 @@
Name:Felidar Sovereign
ManaCost:4 W W
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
K:Vigilance
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:Picture:http://www.wizards.com/global/images/magic/general/felidar_sovereign.jpg
SetInfo:ZEN|Mythic|http://magiccards.info/scans/en/zen/12.jpg

View File

@@ -1,7 +1,9 @@
Name:Test of Endurance
ManaCost:2 W W
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:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/test_of_endurance.jpg

View File

@@ -117,10 +117,8 @@ public class Upkeep implements java.io.Serializable {
//Win / Lose
// Checks for can't win or can't lose happen in Player.altWinConditionMet()
upkeep_Test_of_Endurance();
upkeep_Helix_Pinnacle();
upkeep_Barren_Glory();
upkeep_Felidar_Sovereign();
upkeep_Karma();
upkeep_Oath_of_Druids();
@@ -2320,34 +2318,6 @@ public class Upkeep implements java.io.Serializable {
} // for
} // 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>
*/
@@ -2379,38 +2349,6 @@ public class Upkeep implements java.io.Serializable {
} // if
} // 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>
*/