*Converted Mortal Combat to script.

This commit is contained in:
Hellfish
2011-09-19 08:25:31 +00:00
parent 2c7759c470
commit c6f2407841
2 changed files with 3 additions and 34 deletions

View File

@@ -117,7 +117,6 @@ public class Upkeep implements java.io.Serializable {
//Win / Lose
// Checks for can't win or can't lose happen in Player.altWinConditionMet()
upkeep_Mortal_Combat();
upkeep_Near_Death_Experience();
upkeep_Test_of_Endurance();
upkeep_Helix_Pinnacle();
@@ -2350,38 +2349,6 @@ public class Upkeep implements java.io.Serializable {
} // if
} // upkeep_Felidar_Sovereign
/**
* <p>upkeep_Mortal_Combat.</p>
*/
private static void upkeep_Mortal_Combat() {
final Player player = AllZone.getPhase().getPlayerTurn();
CardList list = player.getCardsIn(Zone.Battlefield, "Mortal Combat");
CardList grave = player.getCardsIn(Zone.Graveyard);
grave = grave.filter(AllZoneUtil.creatures);
if (0 < list.size() && 20 <= grave.size()) {
final Card source = list.get(0);
Ability ability = new Ability(source, "0") {
@Override
public void resolve() {
CardList grave = player.getCardsIn(Zone.Graveyard);
grave = grave.filter(AllZoneUtil.creatures);
if (grave.size() >= 20)
player.altWinBySpellEffect(source.getName());
}
}; // Ability
StringBuilder sb = new StringBuilder();
sb.append("Mortal Combat - ").append(player).append(" wins the game");
ability.setStackDescription(sb.toString());
AllZone.getStack().addSimultaneousStackEntry(ability);
} // if
} // upkeep_Mortal Combat
/**
* <p>upkeep_Helix_Pinnacle.</p>
*/