mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Merge remote-tracking branch 'refs/remotes/magefree/master'
This commit is contained in:
commit
854028e460
12 changed files with 886 additions and 20 deletions
|
@ -17,7 +17,9 @@
|
|||
1 [C16:57] Abzan Falconer
|
||||
1 [C16:56] Ash Barrens
|
||||
1 [C16:9] Grip of Phyresis
|
||||
5 [C16:337] Plains
|
||||
2 [C16:337] Plains
|
||||
1 [C16:338] Plains
|
||||
2 [C16:339] Plains
|
||||
1 [C16:99] Tezzeret's Gambit
|
||||
1 [C16:217] Putrefy
|
||||
1 [C16:7] Deepglow Skate
|
||||
|
@ -67,17 +69,23 @@
|
|||
1 [C16:33] Ishai, Ojutai Dragonspeaker
|
||||
1 [C16:40] Reyhan, Last of the Abzan
|
||||
1 [C16:186] Bred for the Hunt
|
||||
4 [C16:340] Island
|
||||
1 [C16:340] Island
|
||||
2 [C16:341] Island
|
||||
1 [C16:340] Island
|
||||
1 [C16:100] Thrummingbird
|
||||
1 [C16:144] Champion of Lambholt
|
||||
1 [C16:101] Treasure Cruise
|
||||
1 [C16:266] Orzhov Signet
|
||||
5 [C16:343] Swamp
|
||||
2 [C16:343] Swamp
|
||||
1 [C16:344] Swamp
|
||||
2 [C16:345] Swamp
|
||||
1 [C16:106] Bane of the Living
|
||||
1 [C16:227] Vorel of the Hull Clade
|
||||
1 [C16:44] Sylvan Reclamation
|
||||
1 [C16:88] Disdainful Stroke
|
||||
1 [C16:228] Vulturous Zombie
|
||||
7 [C16:349] Forest
|
||||
3 [C16:349] Forest
|
||||
2 [C16:350] Forest
|
||||
2 [C16:351] Forest
|
||||
1 [C16:308] Murmuring Bosk
|
||||
SB: 1 [C16:28] Atraxa, Praetors' Voice
|
||||
|
|
|
@ -63,22 +63,30 @@
|
|||
1 [C16:184] Bloodbraid Elf
|
||||
1 [C16:82] Aeon Chronicler
|
||||
1 [C16:81] Academy Elite
|
||||
5 [C16:340] Island
|
||||
2 [C16:340] Island
|
||||
2 [C16:341] Island
|
||||
1 [C16:342] Island
|
||||
1 [C16:143] Burgeoning
|
||||
1 [C16:188] Coiling Oracle
|
||||
1 [C16:101] Treasure Cruise
|
||||
1 [C16:189] Consuming Aberration
|
||||
1 [C16:222] Spellheart Chimera
|
||||
1 [C16:49] Vial Smasher the Fierce
|
||||
5 [C16:343] Swamp
|
||||
2 [C16:343] Swamp
|
||||
2 [C16:344] Swamp
|
||||
1 [C16:345] Swamp
|
||||
1 [C16:268] Rakdos Signet
|
||||
1 [C16:47] Treacherous Terrain
|
||||
1 [C16:104] Windfall
|
||||
1 [C16:148] Far Wanderings
|
||||
1 [C16:46] Thrasios, Triton Hero
|
||||
5 [C16:346] Mountain
|
||||
1 [C16:346] Mountain
|
||||
2 [C16:347] Mountain
|
||||
1 [C16:348] Mountain
|
||||
1 [C16:105] Army of the Damned
|
||||
1 [C16:303] Jungle Hollow
|
||||
5 [C16:349] Forest
|
||||
2 [C16:349] Forest
|
||||
2 [C16:350] Forest
|
||||
1 [C16:351] Forest
|
||||
1 [C16:229] Whispering Madness
|
||||
SB: 1 [C16:50] Yidris, Maelstrom Wielder
|
||||
|
|
|
@ -19,7 +19,9 @@
|
|||
1 [C16:12] Curse of Vengeance
|
||||
1 [C16:9] Grip of Phyresis
|
||||
1 [C16:8] Faerie Artisans
|
||||
5 [C16:337] Plains
|
||||
1 [C16:337] Plains
|
||||
2 [C16:338] Plains
|
||||
2 [C16:339] Plains
|
||||
1 [C16:6] Coastal Breach
|
||||
1 [C16:64] Dispeller's Capsule
|
||||
1 [C16:281] Arcane Sanctum
|
||||
|
@ -68,17 +70,23 @@
|
|||
1 [C16:140] Whipflare
|
||||
1 [C16:262] Mycosynth Wellspring
|
||||
1 [C16:263] Myr Battlesphere
|
||||
5 [C16:340] Island
|
||||
2 [C16:340] Island
|
||||
1 [C16:341] Island
|
||||
2 [C16:342] Island
|
||||
1 [C16:264] Myr Retriever
|
||||
1 [C16:221] Sharuum the Hegemon
|
||||
1 [C16:265] Nevinyrral's Disk
|
||||
4 [C16:343] Swamp
|
||||
1 [C16:343] Swamp
|
||||
2 [C16:344] Swamp
|
||||
1 [C16:345] Swamp
|
||||
1 [C16:223] Sphinx Summoner
|
||||
1 [C16:102] Trinket Mage
|
||||
1 [C16:224] Sydri, Galvanic Genius
|
||||
1 [C16:103] Vedalken Engineer
|
||||
1 [C16:269] Shimmer Myr
|
||||
4 [C16:346] Mountain
|
||||
2 [C16:346] Mountain
|
||||
1 [C16:347] Mountain
|
||||
1 [C16:348] Mountain
|
||||
1 [C16:89] Etherium Sculptor
|
||||
1 [C16:107] Beacon of Unrest
|
||||
1 [C16:109] Executioner's Capsule
|
||||
|
|
|
@ -22,7 +22,9 @@
|
|||
1 [C16:215] Necrogenesis
|
||||
1 [C16:336] Windbrisk Heights
|
||||
1 [C16:56] Ash Barrens
|
||||
3 [C16:337] Plains
|
||||
1 [C16:337] Plains
|
||||
1 [C16:338] Plains
|
||||
1 [C16:339] Plains
|
||||
1 [C16:160] Quirion Explorer
|
||||
1 [C16:161] Rampant Growth
|
||||
1 [C16:240] Order // Chaos
|
||||
|
@ -69,12 +71,16 @@
|
|||
1 [C16:185] Boros Charm
|
||||
1 [C16:142] Beastmaster Ascension
|
||||
1 [C16:187] Clan Defiance
|
||||
3 [C16:343] Swamp
|
||||
1 [C16:343] Swamp
|
||||
1 [C16:344] Swamp
|
||||
1 [C16:345] Swamp
|
||||
1 [C16:300] Gruul Turf
|
||||
1 [C16:48] Tymna the Weaver
|
||||
1 [C16:147] Den Protector
|
||||
1 [C16:47] Treacherous Terrain
|
||||
5 [C16:346] Mountain
|
||||
2 [C16:346] Mountain
|
||||
1 [C16:347] Mountain
|
||||
2 [C16:348] Mountain
|
||||
1 [C16:225] Terminate
|
||||
1 [C16:45] Tana, the Bloodsower
|
||||
1 [C16:149] Farseek
|
||||
|
@ -82,7 +88,9 @@
|
|||
1 [C16:304] Jungle Shrine
|
||||
1 [C16:44] Sylvan Reclamation
|
||||
1 [C16:305] Karplusan Forest
|
||||
5 [C16:349] Forest
|
||||
2 [C16:349] Forest
|
||||
1 [C16:350] Forest
|
||||
2 [C16:351] Forest
|
||||
1 [C16:108] Brutal Hordechief
|
||||
1 [C16:307] Mosswort Bridge
|
||||
SB: 1 [C16:41] Saskia the Unyielding
|
||||
|
|
|
@ -18,7 +18,9 @@
|
|||
1 [C16:259] Keening Stone
|
||||
1 [C16:55] Prismatic Geoscope
|
||||
1 [C16:216] Progenitor Mimic
|
||||
5 [C16:337] Plains
|
||||
2 [C16:337] Plains
|
||||
2 [C16:338] Plains
|
||||
1 [C16:339] Plains
|
||||
1 [C16:219] Rubblehulk
|
||||
1 [C16:4] Selfless Squire
|
||||
1 [C16:3] Orzhov Advokist
|
||||
|
@ -66,7 +68,9 @@
|
|||
1 [C16:83] Arcane Denial
|
||||
1 [C16:141] Beast Within
|
||||
1 [C16:80] Windborn Muse
|
||||
5 [C16:340] Island
|
||||
2 [C16:340] Island
|
||||
1 [C16:341] Island
|
||||
2 [C16:342] Island
|
||||
1 [C16:220] Selvala, Explorer Returned
|
||||
1 [C16:145] Collective Voyage
|
||||
1 [C16:146] Cultivate
|
||||
|
@ -75,10 +79,14 @@
|
|||
1 [C16:301] Homeward Path
|
||||
1 [C16:47] Treacherous Terrain
|
||||
1 [C16:302] Izzet Boilerworks
|
||||
5 [C16:346] Mountain
|
||||
1 [C16:346] Mountain
|
||||
2 [C16:347] Mountain
|
||||
2 [C16:348] Mountain
|
||||
1 [C16:304] Jungle Shrine
|
||||
1 [C16:44] Sylvan Reclamation
|
||||
5 [C16:349] Forest
|
||||
1 [C16:349] Forest
|
||||
2 [C16:350] Forest
|
||||
2 [C16:351] Forest
|
||||
1 [C16:306] Krosan Verge
|
||||
1 [C16:309] Myriad Landscape
|
||||
SB: 1 [C16:36] Kynaios and Tiro of Meletis
|
||||
|
|
121
Mage.Sets/src/mage/cards/c/CapitalPunishment.java
Normal file
121
Mage.Sets/src/mage/cards/c/CapitalPunishment.java
Normal file
|
@ -0,0 +1,121 @@
|
|||
/*
|
||||
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are
|
||||
* permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* The views and conclusions contained in the software and documentation are those of the
|
||||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
package mage.cards.c;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.dynamicvalue.common.StaticValue;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.SacrificeOpponentsEffect;
|
||||
import mage.abilities.effects.common.discard.DiscardEachPlayerEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.TargetController;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JRHerlehy
|
||||
*/
|
||||
public class CapitalPunishment extends CardImpl {
|
||||
|
||||
public CapitalPunishment(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{B}{B}");
|
||||
|
||||
|
||||
// <i>Council's dilemma</i> — Starting with you, each player votes for death or taxes. Each opponent sacrifices a creature for each death vote and discards a card for each taxes vote.
|
||||
this.getSpellAbility().addEffect(new CapitalPunishmentDilemmaEffect());
|
||||
}
|
||||
|
||||
public CapitalPunishment(final CapitalPunishment card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CapitalPunishment copy() {
|
||||
return new CapitalPunishment(this);
|
||||
}
|
||||
}
|
||||
|
||||
class CapitalPunishmentDilemmaEffect extends OneShotEffect {
|
||||
|
||||
public CapitalPunishmentDilemmaEffect() {
|
||||
super(Outcome.Detriment);
|
||||
this.staticText = "<i>Council's dilemma</i> — Starting with you, each player votes for death or taxes. Each opponent sacrifices a creature for each death vote and discards a card for each taxes vote";
|
||||
}
|
||||
|
||||
public CapitalPunishmentDilemmaEffect(final CapitalPunishmentDilemmaEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
|
||||
//If no controller, exit out here and do not vote.
|
||||
if (controller == null) return false;
|
||||
|
||||
int deathCount = 0, taxesCount = 0;
|
||||
|
||||
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
|
||||
Player player = game.getPlayer(playerId);
|
||||
if (player != null) {
|
||||
if (player.chooseUse(Outcome.Detriment, "Choose death?", source, game)) {
|
||||
deathCount++;
|
||||
game.informPlayers(player.getName() + " has voted for death");
|
||||
} else {
|
||||
taxesCount++;
|
||||
game.informPlayers(player.getName() + " has voted for taxes");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (deathCount > 0) {
|
||||
Effect sacraficeEffect = new SacrificeOpponentsEffect(deathCount, new FilterControlledCreaturePermanent());
|
||||
sacraficeEffect.apply(game, source);
|
||||
}
|
||||
|
||||
if (taxesCount > 0) {
|
||||
Effect discardEffect = new DiscardEachPlayerEffect(new StaticValue(taxesCount), false, TargetController.OPPONENT);
|
||||
discardEffect.apply(game, source);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CapitalPunishmentDilemmaEffect copy() {
|
||||
return new CapitalPunishmentDilemmaEffect(this);
|
||||
}
|
||||
}
|
191
Mage.Sets/src/mage/cards/e/Expropriate.java
Normal file
191
Mage.Sets/src/mage/cards/e/Expropriate.java
Normal file
|
@ -0,0 +1,191 @@
|
|||
/*
|
||||
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are
|
||||
* permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* The views and conclusions contained in the software and documentation are those of the
|
||||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
package mage.cards.e;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.ContinuousEffect;
|
||||
import mage.abilities.effects.ContinuousEffectImpl;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.ExileSpellEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.predicate.other.OwnerIdPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.game.turn.TurnMod;
|
||||
import mage.players.Player;
|
||||
import mage.players.Players;
|
||||
import mage.target.Target;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.targetpointer.FixedTarget;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author JRHerlehy
|
||||
*/
|
||||
public class Expropriate extends CardImpl {
|
||||
|
||||
public Expropriate(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{7}{U}{U}");
|
||||
|
||||
// <i>Council's dilemma</i> — Starting with you, each player votes for time or money. For each time vote, take an extra turn after this one. For each money vote, choose a permanent owned by the voter and gain control of it. Exile Expropriate
|
||||
this.getSpellAbility().addEffect(new ExpropriateDilemmaEffect());
|
||||
this.getSpellAbility().addEffect(ExileSpellEffect.getInstance());
|
||||
}
|
||||
|
||||
public Expropriate(final Expropriate card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Expropriate copy() {
|
||||
return new Expropriate(this);
|
||||
}
|
||||
}
|
||||
|
||||
class ExpropriateDilemmaEffect extends OneShotEffect {
|
||||
|
||||
public ExpropriateDilemmaEffect() {
|
||||
super(Outcome.Benefit);
|
||||
this.staticText = "<i>Council's dilemma</i> — Starting with you, each player votes for time or money. For each time vote, take an extra turn after this one. For each money vote, choose a permanent owned by the voter and gain control of it.";
|
||||
}
|
||||
|
||||
public ExpropriateDilemmaEffect(final ExpropriateDilemmaEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
public ExpropriateDilemmaEffect(Outcome outcome) {
|
||||
super(outcome);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
|
||||
//If not controller, exit out here and do not vote.
|
||||
if (controller == null) return false;
|
||||
|
||||
int timeCount = 0, moneyCount = 0;
|
||||
Players moneyVoters = new Players();
|
||||
|
||||
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
|
||||
Player player = game.getPlayer(playerId);
|
||||
if (player != null) {
|
||||
if (player.chooseUse(Outcome.Benefit, "Choose time?", source, game)) {
|
||||
timeCount++;
|
||||
game.informPlayers(player.getName() + " has voted for time");
|
||||
} else {
|
||||
moneyCount++;
|
||||
moneyVoters.addPlayer(player);
|
||||
game.informPlayers(player.getName() + " has voted for money");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (timeCount > 0) {
|
||||
if (timeCount == 1) {
|
||||
game.informPlayers(controller.getName() + " will take an extra turn");
|
||||
} else {
|
||||
game.informPlayers(controller.getName() + " will take " + timeCount + " extra turns");
|
||||
}
|
||||
|
||||
do {
|
||||
game.getState().getTurnMods().add(new TurnMod(source.getControllerId(), false));
|
||||
timeCount--;
|
||||
} while (timeCount > 0);
|
||||
}
|
||||
|
||||
if (moneyCount > 0) {
|
||||
List<Permanent> chosenCards = new ArrayList<>();
|
||||
|
||||
for (UUID playerId : moneyVoters.keySet()) {
|
||||
FilterPermanent filter = new FilterPermanent("permanent owned by " + game.getPlayer(playerId).getName());
|
||||
filter.add(new OwnerIdPredicate(playerId));
|
||||
|
||||
Target target = new TargetPermanent(filter);
|
||||
target.setNotTarget(true);
|
||||
|
||||
if (controller.choose(Outcome.GainControl, target, source.getSourceId(), game)) {
|
||||
Permanent targetPermanent = game.getPermanent(target.getFirstTarget());
|
||||
|
||||
if (targetPermanent != null) chosenCards.add(targetPermanent);
|
||||
}
|
||||
}
|
||||
|
||||
for (Permanent permanent : chosenCards) {
|
||||
ContinuousEffect effect = new ExpropriateControlEffect(controller.getId());
|
||||
effect.setTargetPointer(new FixedTarget(permanent.getId()));
|
||||
game.addEffect(effect, source);
|
||||
game.informPlayers(controller.getName() + " gained control of " + permanent.getName() + " owned by " + game.getPlayer(permanent.getOwnerId()).getName());
|
||||
}
|
||||
} //End moneyCount if statement
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ExpropriateDilemmaEffect copy() {
|
||||
return new ExpropriateDilemmaEffect(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class ExpropriateControlEffect extends ContinuousEffectImpl {
|
||||
|
||||
private UUID controllerId;
|
||||
|
||||
public ExpropriateControlEffect(UUID controllerId) {
|
||||
super(Duration.EndOfGame, Layer.ControlChangingEffects_2, SubLayer.NA, Outcome.GainControl);
|
||||
this.controllerId = controllerId;
|
||||
}
|
||||
|
||||
public ExpropriateControlEffect(final ExpropriateControlEffect effect) {
|
||||
super(effect);
|
||||
this.controllerId = effect.controllerId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ExpropriateControlEffect copy() {
|
||||
return new ExpropriateControlEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Permanent permanent = game.getPermanent(targetPointer.getFirst(game, source));
|
||||
if (permanent != null && controllerId != null) {
|
||||
return permanent.changeControllerId(controllerId, game);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
126
Mage.Sets/src/mage/cards/l/LieutenantsOfTheGuard.java
Normal file
126
Mage.Sets/src/mage/cards/l/LieutenantsOfTheGuard.java
Normal file
|
@ -0,0 +1,126 @@
|
|||
/*
|
||||
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are
|
||||
* permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* The views and conclusions contained in the software and documentation are those of the
|
||||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
package mage.cards.l;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.counters.CounterType;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.game.permanent.token.SoldierToken;
|
||||
import mage.players.Player;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JRHerlehy
|
||||
*/
|
||||
public class LieutenantsOfTheGuard extends CardImpl {
|
||||
|
||||
public LieutenantsOfTheGuard(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{W}");
|
||||
|
||||
this.subtype.add("Human");
|
||||
this.subtype.add("Soldier");
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// <i>Council's dilemma</i> — When Lieutenants of the Guard enters the battlefield, starting with you, each player votes for strength or numbers. Put a +1/+1 counter on Lieutenants of the Guard for each strength vote and put a 1/1 white Soldier creature token onto the battlefield for each numbers vote.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new LieutenantsOfTheGuardDilemmaEffect(), false, "<i>Council's dilemma</i> — "));
|
||||
}
|
||||
|
||||
public LieutenantsOfTheGuard(final LieutenantsOfTheGuard card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public LieutenantsOfTheGuard copy() {
|
||||
return new LieutenantsOfTheGuard(this);
|
||||
}
|
||||
}
|
||||
|
||||
class LieutenantsOfTheGuardDilemmaEffect extends OneShotEffect {
|
||||
public LieutenantsOfTheGuardDilemmaEffect() {
|
||||
super(Outcome.Benefit);
|
||||
this.staticText = "starting with you, each player votes for strength or numbers. Put a +1/+1 counter on {this} for each strength vote and put a 1/1 white Soldier creature token onto the battlefield for each numbers vote.";
|
||||
}
|
||||
|
||||
public LieutenantsOfTheGuardDilemmaEffect(final LieutenantsOfTheGuardDilemmaEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
|
||||
//If no controller, exit out here and do not vote.
|
||||
if (controller == null) return false;
|
||||
|
||||
int strengthCount = 0, numbersCount = 0;
|
||||
|
||||
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
|
||||
Player player = game.getPlayer(playerId);
|
||||
if (player != null) {
|
||||
if (player.chooseUse(Outcome.BoostCreature, "Choose strength?", source, game)) {
|
||||
strengthCount++;
|
||||
game.informPlayers(player.getName() + " has voted for strength");
|
||||
} else {
|
||||
numbersCount++;
|
||||
game.informPlayers(player.getName() + " has voted for numbers");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Permanent permanent = game.getPermanent(source.getSourceId());
|
||||
|
||||
//If strength received zero votes or the permanent is no longer on the battlefield, do not attempt to put P1P1 counters on it.
|
||||
if (strengthCount > 0 && permanent != null) permanent.addCounters(CounterType.P1P1.createInstance(strengthCount), game);
|
||||
|
||||
//Create the appropriate number of tokens for the controller.
|
||||
if (numbersCount > 0) {
|
||||
Effect tokenEffect = new CreateTokenEffect(new SoldierToken(), numbersCount);
|
||||
tokenEffect.apply(game, source);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public LieutenantsOfTheGuardDilemmaEffect copy() {
|
||||
return new LieutenantsOfTheGuardDilemmaEffect(this);
|
||||
}
|
||||
}
|
128
Mage.Sets/src/mage/cards/m/MessengerJays.java
Normal file
128
Mage.Sets/src/mage/cards/m/MessengerJays.java
Normal file
|
@ -0,0 +1,128 @@
|
|||
/*
|
||||
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are
|
||||
* permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* The views and conclusions contained in the software and documentation are those of the
|
||||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
package mage.cards.m;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.DrawDiscardControllerEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.counters.CounterType;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.players.Player;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JRHerlehy
|
||||
*/
|
||||
public class MessengerJays extends CardImpl {
|
||||
|
||||
public MessengerJays(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{U}");
|
||||
|
||||
this.subtype.add("Bird");
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// <i>Council's dilemma — When Messenger Jays enters the battlefield, starting with you, each player votes for feather or quill. Put a +1/+1 counter on Messenger Jays for each feather vote and draw a card for each quill vote. For each card drawn this way, discard a card.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new MessengerJaysDilemmaEffect(), false, "<i>Council's dilemma</i> — "));
|
||||
}
|
||||
|
||||
public MessengerJays(final MessengerJays card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MessengerJays copy() {
|
||||
return new MessengerJays(this);
|
||||
}
|
||||
}
|
||||
|
||||
class MessengerJaysDilemmaEffect extends OneShotEffect {
|
||||
|
||||
public MessengerJaysDilemmaEffect() {
|
||||
super(Outcome.Benefit);
|
||||
this.staticText = "starting with you, each player votes for feather or quill. Put a +1/+1 counter on {this} for each feather vote and draw a card for each quill vote. For each card drawn this way, discard a card.";
|
||||
}
|
||||
|
||||
public MessengerJaysDilemmaEffect(final MessengerJaysDilemmaEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
|
||||
//If no controller, exit out here and do not vote.
|
||||
if (controller == null) return false;
|
||||
|
||||
int featherCount = 0, quillCount = 0;
|
||||
|
||||
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
|
||||
Player player = game.getPlayer(playerId);
|
||||
if (player != null) {
|
||||
if (player.chooseUse(Outcome.BoostCreature, "Choose feather?", source, game)) {
|
||||
featherCount++;
|
||||
game.informPlayers(player.getName() + " has voted for feather");
|
||||
} else {
|
||||
quillCount++;
|
||||
game.informPlayers(player.getName() + " has voted for quill");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Permanent permanent = game.getPermanent(source.getSourceId());
|
||||
|
||||
//If feathers received zero votes or the permanent is no longer on the battlefield, do not attempt to put P1P1 counter on it.
|
||||
if (featherCount > 0 && permanent != null) permanent.addCounters(CounterType.P1P1.createInstance(featherCount), game);
|
||||
|
||||
//Only let the controller loot the appropriate amount of cards if it was voted for.
|
||||
if (quillCount > 0) {
|
||||
Effect lootCardsEffect = new DrawDiscardControllerEffect(quillCount, quillCount);
|
||||
lootCardsEffect.apply(game, source);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MessengerJaysDilemmaEffect copy() {
|
||||
return new MessengerJaysDilemmaEffect(this);
|
||||
}
|
||||
}
|
121
Mage.Sets/src/mage/cards/o/OrchardElemental.java
Normal file
121
Mage.Sets/src/mage/cards/o/OrchardElemental.java
Normal file
|
@ -0,0 +1,121 @@
|
|||
/*
|
||||
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are
|
||||
* permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* The views and conclusions contained in the software and documentation are those of the
|
||||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
package mage.cards.o;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.counters.CounterType;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.players.Player;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JRHerlehy
|
||||
*/
|
||||
public class OrchardElemental extends CardImpl {
|
||||
|
||||
public OrchardElemental(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{5}{G}");
|
||||
|
||||
this.subtype.add("Elemental");
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// <i>Council's dilemma</i> &mdash When Orchard Elemental enters the battlefield, starting with you, each player votes for sprout or harvest. Put two +1/+1 counters on Orchard Elemental for each sprout vote. You gain 3 life for each harvest vote.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new OrchardElementalDilemmaEffect(), false, "<i>Council's dilemma</i> — "));
|
||||
}
|
||||
|
||||
public OrchardElemental(final OrchardElemental card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OrchardElemental copy() {
|
||||
return new OrchardElemental(this);
|
||||
}
|
||||
}
|
||||
|
||||
class OrchardElementalDilemmaEffect extends OneShotEffect {
|
||||
|
||||
public OrchardElementalDilemmaEffect() {
|
||||
super(Outcome.Benefit);
|
||||
this.staticText = "starting with you, each player votes for sprout or harvest. Put two +1/+1 counters on Orchard Elemental for each sprout vote. You gain 3 life for each harvest vote";
|
||||
}
|
||||
|
||||
public OrchardElementalDilemmaEffect(final OrchardElementalDilemmaEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
|
||||
if (controller == null) return false;
|
||||
|
||||
int sproutCount = 0, harvestCount = 0;
|
||||
|
||||
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
|
||||
Player player = game.getPlayer(playerId);
|
||||
if (player != null) {
|
||||
if (player.chooseUse(Outcome.BoostCreature, "Choose sprout?", source, game)) {
|
||||
sproutCount++;
|
||||
game.informPlayers(player.getName() + " has voted for sprout");
|
||||
} else {
|
||||
harvestCount++;
|
||||
game.informPlayers(player.getName() + " has voted for harvest");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Permanent permanent = game.getPermanent(source.getSourceId());
|
||||
|
||||
if (sproutCount > 0 && permanent != null) permanent.addCounters(CounterType.P1P1.createInstance(sproutCount * 2), game);
|
||||
|
||||
if (harvestCount > 0) {
|
||||
Effect gainLifeEffect = new GainLifeEffect(harvestCount * 3);
|
||||
gainLifeEffect.apply(game, source);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public OrchardElementalDilemmaEffect copy() {
|
||||
return new OrchardElementalDilemmaEffect(this);
|
||||
}
|
||||
}
|
133
Mage.Sets/src/mage/cards/s/SelvalasStampede.java
Normal file
133
Mage.Sets/src/mage/cards/s/SelvalasStampede.java
Normal file
|
@ -0,0 +1,133 @@
|
|||
/*
|
||||
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are
|
||||
* permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* The views and conclusions contained in the software and documentation are those of the
|
||||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
package mage.cards.s;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.cards.*;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.common.FilterPermanentCard;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
import mage.target.common.TargetCardInHand;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JRHerlehy
|
||||
*/
|
||||
public class SelvalasStampede extends CardImpl {
|
||||
|
||||
public SelvalasStampede(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{G}{G}");
|
||||
|
||||
|
||||
// <i>Council's dilemma</i> &mdash Starting with you, each player votes for wild or free. Reveal cards from the top of your library until you reveal a creature card for each wild vote. Put those creature cards onto the battlefield, then shuffle the rest into your library. You may put a permanent card from your hand onto the battlefield for each free vote.
|
||||
this.getSpellAbility().addEffect(new SelvalasStampedeDilemmaEffect());
|
||||
}
|
||||
|
||||
public SelvalasStampede(final SelvalasStampede card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SelvalasStampede copy() {
|
||||
return new SelvalasStampede(this);
|
||||
}
|
||||
}
|
||||
|
||||
class SelvalasStampedeDilemmaEffect extends OneShotEffect {
|
||||
|
||||
public SelvalasStampedeDilemmaEffect() {
|
||||
super(Outcome.Benefit);
|
||||
this.staticText = "<i>Council's dilemma</i> — Starting with you, each player votes for wild or free. Reveal cards from the top of your library until you reveal a creature card for each wild vote. Put those creature cards onto the battlefield, then shuffle the rest into your library. You may put a permanent card from your hand onto the battlefield for each free vote";
|
||||
}
|
||||
|
||||
public SelvalasStampedeDilemmaEffect(final SelvalasStampedeDilemmaEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
|
||||
//If no controller, exit here and do not vote.
|
||||
if (controller == null) return false;
|
||||
|
||||
int wildCount = 0, freeCount = 0;
|
||||
|
||||
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
|
||||
Player player = game.getPlayer(playerId);
|
||||
if (player != null) {
|
||||
if (player.chooseUse(Outcome.Benefit, "Choose wild?", source, game)) {
|
||||
wildCount++;
|
||||
game.informPlayers(player.getName() + " has voted for wild");
|
||||
} else {
|
||||
freeCount++;
|
||||
game.informPlayers(player.getName() + " has voted for free");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (wildCount > 0) {
|
||||
Cards revealedCards = new CardsImpl();
|
||||
|
||||
while (wildCount > 0 && controller.getLibrary().size() > 0) {
|
||||
Card card = controller.getLibrary().removeFromTop(game);
|
||||
if (card.getCardType().contains(CardType.CREATURE)) {
|
||||
controller.moveCards(card, Zone.BATTLEFIELD, source, game);
|
||||
wildCount--;
|
||||
} else {
|
||||
revealedCards.add(card);
|
||||
}
|
||||
}
|
||||
|
||||
controller.revealCards("Selvala's Stampede", revealedCards, game);
|
||||
controller.moveCards(revealedCards, Zone.LIBRARY, source, game);
|
||||
controller.shuffleLibrary(source, game);
|
||||
}
|
||||
|
||||
if (freeCount > 0) {
|
||||
TargetCardInHand target = new TargetCardInHand(0, freeCount, new FilterPermanentCard("permanent cards"));
|
||||
if (controller.choose(Outcome.PutCardInPlay, target, source.getSourceId(), game)) {
|
||||
controller.moveCards(new CardsImpl(target.getTargets()), Zone.BATTLEFIELD, source, game);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SelvalasStampedeDilemmaEffect copy() {
|
||||
return new SelvalasStampedeDilemmaEffect(this);
|
||||
}
|
||||
}
|
|
@ -74,6 +74,7 @@ public class ConspiracyTakeTheCrown extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Burning Wish", 152, Rarity.RARE, mage.cards.b.BurningWish.class));
|
||||
cards.add(new SetCardInfo("Caller of Gales", 103, Rarity.COMMON, mage.cards.c.CallerOfGales.class));
|
||||
cards.add(new SetCardInfo("Canal Courier", 28, Rarity.COMMON, mage.cards.c.CanalCourier.class));
|
||||
cards.add(new SetCardInfo("Capital Punishment", 40, Rarity.RARE, mage.cards.c.CapitalPunishment.class));
|
||||
cards.add(new SetCardInfo("Carnage Gladiator", 199, Rarity.UNCOMMON, mage.cards.c.CarnageGladiator.class));
|
||||
cards.add(new SetCardInfo("Charmbreaker Devils", 153, Rarity.RARE, mage.cards.c.CharmbreakerDevils.class));
|
||||
cards.add(new SetCardInfo("Child of Night", 130, Rarity.COMMON, mage.cards.c.ChildOfNight.class));
|
||||
|
@ -104,6 +105,7 @@ public class ConspiracyTakeTheCrown extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Evolving Wilds", 218, Rarity.COMMON, mage.cards.e.EvolvingWilds.class));
|
||||
cards.add(new SetCardInfo("Exotic Orchard", 219, Rarity.RARE, mage.cards.e.ExoticOrchard.class));
|
||||
cards.add(new SetCardInfo("Explosive Vegetation", 180, Rarity.UNCOMMON, mage.cards.e.ExplosiveVegetation.class));
|
||||
cards.add(new SetCardInfo("Expropriate", 30, Rarity.MYTHIC, mage.cards.e.Expropriate.class));
|
||||
cards.add(new SetCardInfo("Fade into Antiquity", 181, Rarity.COMMON, mage.cards.f.FadeIntoAntiquity.class));
|
||||
cards.add(new SetCardInfo("Faith's Reward", 84, Rarity.RARE, mage.cards.f.FaithsReward.class));
|
||||
cards.add(new SetCardInfo("Farbog Boneflinger", 134, Rarity.UNCOMMON, mage.cards.f.FarbogBoneflinger.class));
|
||||
|
@ -155,11 +157,13 @@ public class ConspiracyTakeTheCrown extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Lace with Moonglove", 184, Rarity.COMMON, mage.cards.l.LaceWithMoonglove.class));
|
||||
cards.add(new SetCardInfo("Lay of the Land", 185, Rarity.COMMON, mage.cards.l.LayOfTheLand.class));
|
||||
cards.add(new SetCardInfo("Leovold, Emissary of Trest", 77, Rarity.MYTHIC, mage.cards.l.LeovoldEmissaryOfTrest.class));
|
||||
cards.add(new SetCardInfo("Lieutenants of the Guard", 16, Rarity.COMMON, mage.cards.l.LieutenantsOfTheGuard.class));
|
||||
cards.add(new SetCardInfo("Manaplasm", 186, Rarity.UNCOMMON, mage.cards.m.Manaplasm.class));
|
||||
cards.add(new SetCardInfo("Marchesa's Decree", 44, Rarity.UNCOMMON, mage.cards.m.MarchesasDecree.class));
|
||||
cards.add(new SetCardInfo("Menagerie Liberator", 67, Rarity.COMMON, mage.cards.m.MenagerieLiberator.class));
|
||||
cards.add(new SetCardInfo("Merfolk Looter", 114, Rarity.UNCOMMON, mage.cards.m.MerfolkLooter.class));
|
||||
cards.add(new SetCardInfo("Merfolk Skyscout", 115, Rarity.UNCOMMON, mage.cards.m.MerfolkSkyscout.class));
|
||||
cards.add(new SetCardInfo("Messenger Jays", 35, Rarity.COMMON, mage.cards.m.MessengerJays.class));
|
||||
cards.add(new SetCardInfo("Mnemonic Wall", 116, Rarity.COMMON, mage.cards.m.MnemonicWall.class));
|
||||
cards.add(new SetCardInfo("Murder", 143, Rarity.COMMON, mage.cards.m.Murder.class));
|
||||
cards.add(new SetCardInfo("Negate", 117, Rarity.COMMON, mage.cards.n.Negate.class));
|
||||
|
@ -168,6 +172,7 @@ public class ConspiracyTakeTheCrown extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Ogre Sentry", 168, Rarity.COMMON, mage.cards.o.OgreSentry.class));
|
||||
cards.add(new SetCardInfo("Omenspeaker", 118, Rarity.COMMON, mage.cards.o.Omenspeaker.class));
|
||||
cards.add(new SetCardInfo("Opaline Unicorn", 213, Rarity.COMMON, mage.cards.o.OpalineUnicorn.class));
|
||||
cards.add(new SetCardInfo("Orchard Elemental", 68, Rarity.COMMON, mage.cards.o.OrchardElemental.class));
|
||||
cards.add(new SetCardInfo("Overrun", 189, Rarity.UNCOMMON, mage.cards.o.Overrun.class));
|
||||
cards.add(new SetCardInfo("Palace Jailer", 18, Rarity.UNCOMMON, mage.cards.p.PalaceJailer.class));
|
||||
cards.add(new SetCardInfo("Palace Sentinels", 19, Rarity.COMMON, mage.cards.p.PalaceSentinels.class));
|
||||
|
@ -192,6 +197,7 @@ public class ConspiracyTakeTheCrown extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Runed Servitor", 216, Rarity.UNCOMMON, mage.cards.r.RunedServitor.class));
|
||||
cards.add(new SetCardInfo("Sanctum Prelate", 23, Rarity.MYTHIC, mage.cards.s.SanctumPrelate.class));
|
||||
cards.add(new SetCardInfo("Sangromancer", 147, Rarity.RARE, mage.cards.s.Sangromancer.class));
|
||||
cards.add(new SetCardInfo("Selvala's Stampede", 71, Rarity.RARE, mage.cards.s.SelvalasStampede.class));
|
||||
cards.add(new SetCardInfo("Selvala, Heart of the Wilds", 70, Rarity.MYTHIC, mage.cards.s.SelvalaHeartOfTheWilds.class));
|
||||
cards.add(new SetCardInfo("Serum Visions", 120, Rarity.UNCOMMON, mage.cards.s.SerumVisions.class));
|
||||
cards.add(new SetCardInfo("Shambling Goblin", 148, Rarity.COMMON, mage.cards.s.ShamblingGoblin.class));
|
||||
|
|
Loading…
Reference in a new issue