mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
add Sheltered Valley (from Alliances)
This commit is contained in:
@@ -1868,6 +1868,27 @@ class CardFactory_Lands {
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Sheltered Valley")) {
|
||||
|
||||
final Command comesIntoPlay = new Command() {
|
||||
private static final long serialVersionUID = 685604326470832887L;
|
||||
|
||||
public void execute() {
|
||||
final Player player = card.getController();
|
||||
CardList land = AllZoneUtil.getPlayerCardsInPlay(player, "Sheltered Valley");
|
||||
land.remove(card);
|
||||
|
||||
if( land.size() > 0 ) {
|
||||
for(Card c:land) AllZone.GameAction.sacrifice(c);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
card.addComesIntoPlayCommand(comesIntoPlay);
|
||||
}//*************** END ************ END **************************
|
||||
|
||||
|
||||
//*************** START *********** START **************************
|
||||
else if(cardName.equals("Scorched Ruins")) {
|
||||
final Command comesIntoPlay = new Command() {
|
||||
|
||||
@@ -48,6 +48,7 @@ public class GameActionUtil {
|
||||
upkeep_Honden_of_Infinite_Rage();
|
||||
upkeep_Vensers_Journal();
|
||||
upkeep_Dega_Sanctuary();
|
||||
upkeep_Sheltered_Valley();
|
||||
upkeep_Land_Tax();
|
||||
upkeep_Tangle_Wire();
|
||||
upkeep_Mana_Vault();
|
||||
@@ -9580,6 +9581,31 @@ public class GameActionUtil {
|
||||
AllZone.Stack.add(ability);
|
||||
}//for
|
||||
}//upkeep_Dega_Sanctuary()
|
||||
|
||||
private static void upkeep_Sheltered_Valley() {
|
||||
final Player player = AllZone.Phase.getPlayerTurn();
|
||||
|
||||
CardList list = AllZoneUtil.getPlayerCardsInPlay(player, "Sheltered Valley");
|
||||
|
||||
for(Card valley:list) {
|
||||
final Card source = valley;
|
||||
final Ability ability = new Ability(source, "0") {
|
||||
public void resolve() {
|
||||
CardList play = AllZoneUtil.getPlayerLandsInPlay(player);
|
||||
if(play.size() <= 3) {
|
||||
player.gainLife(1, source);
|
||||
}
|
||||
}
|
||||
};//Ability
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(source.getName()).append(" - ");
|
||||
sb.append("if you control three or fewer lands, you gain 1 life.");
|
||||
ability.setStackDescription(sb.toString());
|
||||
|
||||
AllZone.Stack.add(ability);
|
||||
}//for
|
||||
}//upkeep_Sheltered_Valley()
|
||||
|
||||
private static void upkeep_The_Rack() {
|
||||
final Player player = AllZone.Phase.getPlayerTurn();
|
||||
|
||||
Reference in New Issue
Block a user