mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 05:52:06 -08:00
Added Dirge of Dreadm , Foster, Night Soil, Vile Requiem, Spoils of the Vault, Dirge of Dread, Isleback Spawn, Deep Sea Kraken.
This commit is contained in:
parent
121b988e3b
commit
3a0d0e9374
14 changed files with 907 additions and 35 deletions
|
|
@ -36,6 +36,7 @@ import mage.constants.Outcome;
|
|||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
import mage.target.common.TargetCardInASingleGraveyard;
|
||||
import mage.target.common.TargetCardInYourGraveyard;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
|
|
@ -55,8 +56,7 @@ public class ExileFromGraveCost extends CostImpl<ExileFromGraveCost> {
|
|||
}
|
||||
if (!this.text.endsWith(" from your graveyard")) {
|
||||
this.text = this.text + " from your graveyard";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public ExileFromGraveCost(TargetCardInYourGraveyard target, String text) {
|
||||
|
|
@ -64,6 +64,12 @@ public class ExileFromGraveCost extends CostImpl<ExileFromGraveCost> {
|
|||
this.text = text;
|
||||
}
|
||||
|
||||
public ExileFromGraveCost(TargetCardInASingleGraveyard target) {
|
||||
this.addTarget(target);
|
||||
this.text = "Exile " + target.getTargetName();
|
||||
}
|
||||
|
||||
|
||||
public ExileFromGraveCost(ExileFromGraveCost cost) {
|
||||
super(cost);
|
||||
}
|
||||
|
|
@ -71,10 +77,9 @@ public class ExileFromGraveCost extends CostImpl<ExileFromGraveCost> {
|
|||
@Override
|
||||
public boolean pay(Ability ability, Game game, UUID sourceId, UUID controllerId, boolean noMana) {
|
||||
if (targets.choose(Outcome.Exile, controllerId, sourceId, game)) {
|
||||
Player player = game.getPlayer(controllerId);
|
||||
for (UUID targetId: targets.get(0).getTargets()) {
|
||||
Card card = player.getGraveyard().get(targetId, game);
|
||||
if (card == null) {
|
||||
Card card = game.getCard(targetId);
|
||||
if (card == null || !game.getState().getZone(targetId).equals(Zone.GRAVEYARD)) {
|
||||
return false;
|
||||
}
|
||||
paid |= card.moveToZone(Zone.EXILED, sourceId, game, false);
|
||||
|
|
|
|||
|
|
@ -36,46 +36,47 @@ import mage.counters.common.*;
|
|||
* @author nantuko
|
||||
*/
|
||||
public enum CounterType {
|
||||
P1P1(new PlusOneCounter().name),
|
||||
M1M1(new MinusOneCounter().name),
|
||||
POISON(new PoisonCounter().name),
|
||||
AGE(new AgeCounter().name),
|
||||
AIM(new AimCounter().name),
|
||||
ARROWHEAD(new ArrowheadCounter().name),
|
||||
AWAKENING(new AwakeningCounter().name),
|
||||
BLAZE(new BlazeCounter().name),
|
||||
BRIBERY(new BriberyCounter().name),
|
||||
CHARGE(new ChargeCounter().name),
|
||||
LORE(new LoreCounter().name),
|
||||
LOYALTY(new LoyaltyCounter().name),
|
||||
LEVEL(new LevelCounter().name),
|
||||
TIME(new TimeCounter().name),
|
||||
DESPAIR(new DespairCounter().name),
|
||||
DEVOTION(new DevotionCounter().name),
|
||||
DIVINITY(new DivinityCounter().name),
|
||||
ELIXIR(new ElixirCounter().name),
|
||||
EON(new EonCounter().name),
|
||||
EYEBALL(new EyeballCounter().name),
|
||||
FADE(new FadeCounter().name),
|
||||
FATE(new FateCounter().name),
|
||||
FEATHER(new FeatherCounter().name),
|
||||
FUSE(new FuseCounter().name),
|
||||
QUEST(new QuestCounter().name),
|
||||
ARROWHEAD(new ArrowheadCounter().name),
|
||||
AIM(new AimCounter().name),
|
||||
EON(new EonCounter().name),
|
||||
AWAKENING(new AwakeningCounter().name),
|
||||
DEVOTION(new DevotionCounter().name),
|
||||
DIVINITY(new DivinityCounter().name),
|
||||
WISH(new WishCounter().name),
|
||||
HOOFPRINT(new HoofprintCounter().name),
|
||||
HATCHLING(new HatchlingCounter().name),
|
||||
HOOFPRINT(new HoofprintCounter().name),
|
||||
ICE(new IceCounter().name),
|
||||
KI(new KiCounter().name),
|
||||
LEVEL(new LevelCounter().name),
|
||||
LORE(new LoreCounter().name),
|
||||
LOYALTY(new LoyaltyCounter().name),
|
||||
M1M1(new MinusOneCounter().name),
|
||||
MINING(new MiningCounter().name),
|
||||
P1P1(new PlusOneCounter().name),
|
||||
PAGE(new PageCounter().name),
|
||||
PAIN(new PainCounter().name),
|
||||
PETRIFICATION(new PetrificationCounter().name),
|
||||
POISON(new PoisonCounter().name),
|
||||
PRESSURE(new PressureCounter().name),
|
||||
QUEST(new QuestCounter().name),
|
||||
SLIME(new SlimeCounter().name),
|
||||
SPORE(new SporeCounter().name),
|
||||
STUDY(new StudyCounter().name),
|
||||
EYEBALL(new EyeballCounter().name),
|
||||
ELIXIR(new ElixirCounter().name),
|
||||
PAIN(new PainCounter().name),
|
||||
DESPAIR(new DespairCounter().name),
|
||||
PAGE(new PageCounter().name),
|
||||
PRESSURE(new PressureCounter().name),
|
||||
PETRIFICATION(new PetrificationCounter().name),
|
||||
MINING(new MiningCounter().name),
|
||||
THEFT(new TheftCounter().name),
|
||||
AGE(new AgeCounter().name),
|
||||
BLAZE(new BlazeCounter().name),
|
||||
ICE(new IceCounter().name),
|
||||
BRIBERY(new BriberyCounter().name),
|
||||
TOWER(new TowerCounter().name);
|
||||
TIME(new TimeCounter().name),
|
||||
TOWER(new TowerCounter().name),
|
||||
VILE(new VileCounter().name),
|
||||
WISH(new WishCounter().name);
|
||||
|
||||
private String name;
|
||||
|
||||
|
|
@ -187,6 +188,8 @@ public enum CounterType {
|
|||
return new BlazeCounter(amount);
|
||||
case ICE:
|
||||
return new IceCounter(amount);
|
||||
case VILE:
|
||||
return new VileCounter(amount);
|
||||
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
49
Mage/src/mage/counters/common/VileCounter.java
Normal file
49
Mage/src/mage/counters/common/VileCounter.java
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
* 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.counters.common;
|
||||
|
||||
import mage.counters.Counter;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
|
||||
public class VileCounter extends Counter<VileCounter> {
|
||||
|
||||
public VileCounter() {
|
||||
super("vile");
|
||||
this.count = 1;
|
||||
}
|
||||
|
||||
public VileCounter(int amount) {
|
||||
super("vile");
|
||||
this.count = amount;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue