removed commented code from cards

This commit is contained in:
North 2012-12-21 22:02:39 +02:00
parent 709d3cc4b1
commit 0349b31fdf
10 changed files with 6 additions and 42 deletions

View file

@ -205,7 +205,6 @@ class CavernOfSoulsCantCounterEffect extends ReplacementEffectImpl<CavernOfSouls
public CavernOfSoulsCantCounterEffect() { public CavernOfSoulsCantCounterEffect() {
super(Constants.Duration.WhileOnBattlefield, Constants.Outcome.Benefit); super(Constants.Duration.WhileOnBattlefield, Constants.Outcome.Benefit);
//staticText = "that spell can't be countered";
staticText = null; staticText = null;
} }

View file

@ -37,7 +37,6 @@ import mage.abilities.common.CantBlockAbility;
import mage.abilities.costs.mana.ColoredManaCost; import mage.abilities.costs.mana.ColoredManaCost;
import mage.abilities.decorator.ConditionalActivatedAbility; import mage.abilities.decorator.ConditionalActivatedAbility;
import mage.abilities.effects.common.RegenerateSourceEffect; import mage.abilities.effects.common.RegenerateSourceEffect;
//import mage.abilities.effects.common.continious.GainAbilitySourceEffect;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.filter.common.FilterControlledPermanent; import mage.filter.common.FilterControlledPermanent;
import mage.filter.predicate.mageobject.SubtypePredicate; import mage.filter.predicate.mageobject.SubtypePredicate;

View file

@ -183,7 +183,6 @@ class RavagerOfTheFellsEffect extends OneShotEffect<RavagerOfTheFellsEffect> {
public RavagerOfTheFellsEffect() { public RavagerOfTheFellsEffect() {
super(Constants.Outcome.Damage); super(Constants.Outcome.Damage);
//staticText = "{this} deals 2 damage to target opponent and 2 damage to up to one target creature that player controls";
} }
public RavagerOfTheFellsEffect(final RavagerOfTheFellsEffect effect) { public RavagerOfTheFellsEffect(final RavagerOfTheFellsEffect effect) {

View file

@ -122,7 +122,6 @@ class SkaabRuinatorAbility extends ActivatedAbilityImpl<SkaabRuinatorAbility> {
class SkaabRuinatorEffect extends OneShotEffect<SkaabRuinatorEffect> { class SkaabRuinatorEffect extends OneShotEffect<SkaabRuinatorEffect> {
public SkaabRuinatorEffect() { public SkaabRuinatorEffect() {
// should it be?
super(Constants.Outcome.PutCreatureInPlay); super(Constants.Outcome.PutCreatureInPlay);
staticText = ""; staticText = "";
} }
@ -142,7 +141,6 @@ class SkaabRuinatorEffect extends OneShotEffect<SkaabRuinatorEffect> {
if (target != null) { if (target != null) {
Player controller = game.getPlayer(target.getOwnerId()); Player controller = game.getPlayer(target.getOwnerId());
if (controller != null) { if (controller != null) {
//return controller.cast(target.getSpellAbility(), game, true);
return target.cast(game, Zone.GRAVEYARD, target.getSpellAbility(), controller.getId()); return target.cast(game, Zone.GRAVEYARD, target.getSpellAbility(), controller.getId());
} }
} }

View file

@ -52,7 +52,7 @@ public class AntQueen extends CardImpl<AntQueen> {
this.expansionSetCode = "M10"; this.expansionSetCode = "M10";
this.subtype.add("Insect"); this.subtype.add("Insect");
this.color.setGreen(true); this.color.setGreen(true);
// this.art = "122179_typ_reg_sty_010.jpg";
this.power = new MageInt(5); this.power = new MageInt(5);
this.toughness = new MageInt(5); this.toughness = new MageInt(5);

View file

@ -96,16 +96,10 @@ class CryptoplasmTransformEffect extends ContinuousEffectImpl<CryptoplasmTransfo
Permanent creature = game.getPermanent(targetPointer.getFirst(game, source)); Permanent creature = game.getPermanent(targetPointer.getFirst(game, source));
Permanent permanent = game.getPermanent(source.getSourceId()); Permanent permanent = game.getPermanent(source.getSourceId());
if (creature == null || permanent == null) if (creature == null || permanent == null) {
return false; return false;
}
/*
CardUtil.copyTo(permanent).from(card, game);
Ability upkeepAbility = new BeginningOfUpkeepTriggeredAbility(new CryptoplasmTransformEffect(), Constants.TargetController.YOU, true);
upkeepAbility.addTarget(new TargetCreaturePermanent());
permanent.addAbility(upkeepAbility, game);
*/
game.copyPermanent(creature, permanent, source, new ApplyToPermanent() { game.copyPermanent(creature, permanent, source, new ApplyToPermanent() {
@Override @Override
public Boolean apply(Game game, Permanent permanent) { public Boolean apply(Game game, Permanent permanent) {
@ -117,7 +111,6 @@ class CryptoplasmTransformEffect extends ContinuousEffectImpl<CryptoplasmTransfo
}); });
return true; return true;
} }

View file

@ -123,9 +123,7 @@ class KozilekButcherOfTruthEffect extends OneShotEffect<KozilekButcherOfTruthEff
@Override @Override
public boolean apply(Game game, Ability source) { public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(source.getControllerId()); Player player = game.getPlayer(source.getControllerId());
/*Card permanent = (Card)game.getObject(source.getSourceId());*/ if (player != null) {
if (player != null /* && permanent != null */) {
/*permanent.moveToZone(Zone.LIBRARY, source.getId(), game, true);*/
player.getLibrary().addAll(player.getGraveyard().getCards(game), game); player.getLibrary().addAll(player.getGraveyard().getCards(game), game);
player.getGraveyard().clear(); player.getGraveyard().clear();
player.shuffleLibrary(game); player.shuffleLibrary(game);

View file

@ -129,7 +129,6 @@ class RenegadeDoppelgangerEffect extends ContinuousEffectImpl<RenegadeDoppelgang
return false; return false;
} }
//CardUtil.copyTo(permanent).from(card, game);
game.copyPermanent(creature, permanent, source, new EmptyApplyToPermanent()); game.copyPermanent(creature, permanent, source, new EmptyApplyToPermanent());
return true; return true;

View file

@ -85,12 +85,6 @@ class LiegeOfTheTangleTriggeredAbility extends TriggeredAbilityImpl<LiegeOfTheTa
LiegeOfTheTangleTriggeredAbility() { LiegeOfTheTangleTriggeredAbility() {
super(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.AWAKENING.createInstance())); super(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.AWAKENING.createInstance()));
this.addEffect(new LiegeOfTheTangleEffect()); this.addEffect(new LiegeOfTheTangleEffect());
// Ability ability = new SimpleStaticAbility(Constants.Zone.BATTLEFIELD,
// new ConditionalContinousEffect(
// new BecomesCreatureSourceEOTEffect(new AwakeningLandToken(), "land"),
// new HaveCounter(CounterType.AWAKENING),
// "This land is an 8/8 green Elemental creature for as long as it has an awakening counter on it. It's still a land"));
// this.addEffect(new GainAbilityTargetEffect(ability, Constants.Duration.EndOfGame));
Target target = new TargetLandPermanent(0, Integer.MAX_VALUE, new FilterLandPermanent(), true); Target target = new TargetLandPermanent(0, Integer.MAX_VALUE, new FilterLandPermanent(), true);
this.addTarget(target); this.addTarget(target);
} }

View file

@ -59,21 +59,6 @@ public class StoicRebuttal extends CardImpl<StoicRebuttal> {
@Override @Override
public void adjustCosts(Ability ability, Game game) { public void adjustCosts(Ability ability, Game game) {
if (MetalcraftCondition.getInstance().apply(game, ability)) { if (MetalcraftCondition.getInstance().apply(game, ability)) {
/*ManaCosts<ManaCost> previousCost = ability.getManaCostsToPay();
ManaCosts<ManaCost> adjustedCost = new ManaCostsImpl<ManaCost>();
boolean reduced = false;
for (ManaCost manaCost : previousCost) {
Mana mana = manaCost.getOptions().get(0);
if (!reduced && mana != null && mana.getColorless() > 0) {
mana.setColorless(0);
adjustedCost.add(manaCost);
reduced = true;
} else {
adjustedCost.add(manaCost);
}
}
ability.getManaCostsToPay().clear();
ability.getManaCostsToPay().addAll(adjustedCost);*/
ability.getManaCostsToPay().clear(); ability.getManaCostsToPay().clear();
ability.getManaCostsToPay().load("{U}{U}"); ability.getManaCostsToPay().load("{U}{U}");
} }