* Changed mana ability of some lands giving damage to SimpleManaAbility instead of BasicManaAbility so if enchanted with Nylea's Presence it gets the mana abilties also without damage.

This commit is contained in:
LevelX2 2014-09-17 23:24:17 +02:00
parent f9147ff89c
commit 6331fe7036
10 changed files with 123 additions and 76 deletions

View file

@ -28,14 +28,16 @@
package mage.sets.apocalypse;
import java.util.UUID;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.Mana;
import mage.abilities.Ability;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.DamageControllerEffect;
import mage.abilities.mana.ColorlessManaAbility;
import mage.abilities.mana.RedManaAbility;
import mage.abilities.mana.WhiteManaAbility;
import mage.abilities.mana.SimpleManaAbility;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.constants.Zone;
/**
*
@ -46,13 +48,15 @@ public class BattlefieldForge extends CardImpl {
public BattlefieldForge(UUID ownerId) {
super(ownerId, 139, "Battlefield Forge", Rarity.RARE, new CardType[]{CardType.LAND}, "");
this.expansionSetCode = "APC";
// Tap: Add 1 to your mana pool.
this.addAbility(new ColorlessManaAbility());
Ability redManaAbility = new RedManaAbility();
// Tap: Add Red or White to your mana pool. Battlefield Forge deals 1 damage to you.
Ability redManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.RedMana, new TapSourceCost());
redManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(redManaAbility);
Ability whiteManaAbility = new WhiteManaAbility();
Ability whiteManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.WhiteMana, new TapSourceCost());
whiteManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(whiteManaAbility);
}

View file

@ -28,14 +28,16 @@
package mage.sets.apocalypse;
import java.util.UUID;
import mage.Mana;
import mage.abilities.Ability;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.DamageControllerEffect;
import mage.abilities.mana.ColorlessManaAbility;
import mage.abilities.mana.SimpleManaAbility;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.abilities.Ability;
import mage.abilities.effects.common.DamageControllerEffect;
import mage.abilities.mana.BlackManaAbility;
import mage.abilities.mana.ColorlessManaAbility;
import mage.abilities.mana.WhiteManaAbility;
import mage.cards.CardImpl;
import mage.constants.Zone;
/**
*
@ -46,11 +48,16 @@ public class CavesOfKoilos extends CardImpl {
public CavesOfKoilos(UUID ownerId) {
super(ownerId, 140, "Caves of Koilos", Rarity.RARE, new CardType[]{CardType.LAND}, "");
this.expansionSetCode = "APC";
// Tap: Add 1 to your mana pool.
this.addAbility(new ColorlessManaAbility());
Ability whiteManaAbility = new WhiteManaAbility();
// Tap: Add White or Black to your mana pool. Caves of Koilos deals 1 damage to you.
Ability whiteManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.WhiteMana, new TapSourceCost());
whiteManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(whiteManaAbility);
Ability blackManaAbility = new BlackManaAbility();
Ability blackManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.BlackMana, new TapSourceCost());
blackManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(blackManaAbility);
}

View file

@ -28,14 +28,16 @@
package mage.sets.apocalypse;
import java.util.UUID;
import mage.Mana;
import mage.abilities.Ability;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.DamageControllerEffect;
import mage.abilities.mana.ColorlessManaAbility;
import mage.abilities.mana.SimpleManaAbility;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.abilities.Ability;
import mage.abilities.effects.common.DamageControllerEffect;
import mage.abilities.mana.BlackManaAbility;
import mage.abilities.mana.ColorlessManaAbility;
import mage.abilities.mana.GreenManaAbility;
import mage.cards.CardImpl;
import mage.constants.Zone;
/**
*
@ -46,11 +48,15 @@ public class LlanowarWastes extends CardImpl {
public LlanowarWastes(UUID ownerId) {
super(ownerId, 141, "Llanowar Wastes", Rarity.RARE, new CardType[]{CardType.LAND}, "");
this.expansionSetCode = "APC";
// Tap: Add 1 to your mana pool.
this.addAbility(new ColorlessManaAbility());
Ability blackManaAbility = new BlackManaAbility();
// Tap: Add Black or Green to your mana pool. Llanowar Wastes deals 1 damage to you.
Ability blackManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.BlackMana, new TapSourceCost());
blackManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(blackManaAbility);
Ability greenManaAbility = new GreenManaAbility();
Ability greenManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.GreenMana, new TapSourceCost());
greenManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(greenManaAbility);
}

View file

@ -28,14 +28,16 @@
package mage.sets.apocalypse;
import java.util.UUID;
import mage.Mana;
import mage.abilities.Ability;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.DamageControllerEffect;
import mage.abilities.mana.ColorlessManaAbility;
import mage.abilities.mana.SimpleManaAbility;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.abilities.Ability;
import mage.abilities.effects.common.DamageControllerEffect;
import mage.abilities.mana.BlueManaAbility;
import mage.abilities.mana.ColorlessManaAbility;
import mage.abilities.mana.RedManaAbility;
import mage.cards.CardImpl;
import mage.constants.Zone;
/**
*
@ -46,11 +48,15 @@ public class ShivanReef extends CardImpl {
public ShivanReef(UUID ownerId) {
super(ownerId, 142, "Shivan Reef", Rarity.RARE, new CardType[]{CardType.LAND}, "");
this.expansionSetCode = "APC";
// Tap: Add 1 to your mana pool.
this.addAbility(new ColorlessManaAbility());
Ability blueManaAbility = new BlueManaAbility();
//Tap: Add Blue or Red to your mana pool. Shivan Reef deals 1 damage to you.
Ability blueManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.BlueMana, new TapSourceCost());
blueManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(blueManaAbility);
Ability redManaAbility = new RedManaAbility();
Ability redManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.RedMana, new TapSourceCost());
redManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(redManaAbility);
}

View file

@ -28,14 +28,16 @@
package mage.sets.apocalypse;
import java.util.UUID;
import mage.Mana;
import mage.abilities.Ability;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.DamageControllerEffect;
import mage.abilities.mana.ColorlessManaAbility;
import mage.abilities.mana.SimpleManaAbility;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.abilities.Ability;
import mage.abilities.effects.common.DamageControllerEffect;
import mage.abilities.mana.BlueManaAbility;
import mage.abilities.mana.ColorlessManaAbility;
import mage.abilities.mana.GreenManaAbility;
import mage.cards.CardImpl;
import mage.constants.Zone;
/**
*
@ -46,11 +48,15 @@ public class YavimayaCoast extends CardImpl {
public YavimayaCoast(UUID ownerId) {
super(ownerId, 143, "Yavimaya Coast", Rarity.RARE, new CardType[]{CardType.LAND}, "");
this.expansionSetCode = "APC";
// Tap: Add 1 to your mana pool.
this.addAbility(new ColorlessManaAbility());
Ability greenManaAbility = new GreenManaAbility();
// Tap: Add Green or Blue to your mana pool. Yavimaya Coast deals 1 damage to you.
Ability greenManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.GreenMana, new TapSourceCost());
greenManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(greenManaAbility);
Ability blueManaAbility = new BlueManaAbility();
Ability blueManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.BlueMana, new TapSourceCost());
blueManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(blueManaAbility);
}

View file

@ -28,15 +28,16 @@
package mage.sets.tenth;
import java.util.UUID;
import mage.Mana;
import mage.abilities.Ability;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.DamageControllerEffect;
import mage.abilities.mana.ColorlessManaAbility;
import mage.abilities.mana.SimpleManaAbility;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.abilities.Ability;
import mage.abilities.effects.common.DamageControllerEffect;
import mage.abilities.mana.BlueManaAbility;
import mage.abilities.mana.ColorlessManaAbility;
import mage.abilities.mana.WhiteManaAbility;
import mage.cards.CardImpl;
import mage.constants.Zone;
/**
*
@ -47,11 +48,13 @@ public class AdarkarWastes extends CardImpl {
public AdarkarWastes(UUID ownerId) {
super(ownerId, 347, "Adarkar Wastes", Rarity.RARE, new CardType[]{CardType.LAND}, "");
this.expansionSetCode = "10E";
this.addAbility(new ColorlessManaAbility());
Ability whiteManaAbility = new WhiteManaAbility();
Ability whiteManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.WhiteMana, new TapSourceCost());
whiteManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(whiteManaAbility);
Ability blueManaAbility = new BlueManaAbility();
Ability blueManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.BlueMana, new TapSourceCost());
blueManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(blueManaAbility);
}

View file

@ -28,14 +28,16 @@
package mage.sets.tenth;
import java.util.UUID;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.Mana;
import mage.abilities.Ability;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.DamageControllerEffect;
import mage.abilities.mana.ColorlessManaAbility;
import mage.abilities.mana.GreenManaAbility;
import mage.abilities.mana.WhiteManaAbility;
import mage.abilities.mana.SimpleManaAbility;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.constants.Zone;
/**
*
@ -47,10 +49,11 @@ public class Brushland extends CardImpl {
super(ownerId, 349, "Brushland", Rarity.RARE, new CardType[]{CardType.LAND}, "");
this.expansionSetCode = "10E";
this.addAbility(new ColorlessManaAbility());
Ability greenManaAbility = new GreenManaAbility();
Ability greenManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.GreenMana, new TapSourceCost());
greenManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(greenManaAbility);
Ability whiteManaAbility = new WhiteManaAbility();
Ability whiteManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.WhiteMana, new TapSourceCost());
whiteManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(whiteManaAbility);
}

View file

@ -28,14 +28,16 @@
package mage.sets.tenth;
import java.util.UUID;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.Mana;
import mage.abilities.Ability;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.DamageControllerEffect;
import mage.abilities.mana.ColorlessManaAbility;
import mage.abilities.mana.GreenManaAbility;
import mage.abilities.mana.RedManaAbility;
import mage.abilities.mana.SimpleManaAbility;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.constants.Zone;
/**
*
@ -46,11 +48,13 @@ public class KarplusanForest extends CardImpl {
public KarplusanForest(UUID ownerId) {
super(ownerId, 354, "Karplusan Forest", Rarity.RARE, new CardType[]{CardType.LAND}, "");
this.expansionSetCode = "10E";
this.addAbility(new ColorlessManaAbility());
Ability redManaAbility = new RedManaAbility();
Ability redManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.RedMana, new TapSourceCost());
redManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(redManaAbility);
Ability greenManaAbility = new GreenManaAbility();
Ability greenManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.GreenMana, new TapSourceCost());
greenManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(greenManaAbility);
}

View file

@ -28,14 +28,16 @@
package mage.sets.tenth;
import java.util.UUID;
import mage.Mana;
import mage.abilities.Ability;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.DamageControllerEffect;
import mage.abilities.mana.ColorlessManaAbility;
import mage.abilities.mana.SimpleManaAbility;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.abilities.Ability;
import mage.abilities.effects.common.DamageControllerEffect;
import mage.abilities.mana.BlackManaAbility;
import mage.abilities.mana.ColorlessManaAbility;
import mage.abilities.mana.RedManaAbility;
import mage.cards.CardImpl;
import mage.constants.Zone;
/**
*
@ -46,11 +48,13 @@ public class SulfurousSprings extends CardImpl {
public SulfurousSprings(UUID ownerId) {
super(ownerId, 359, "Sulfurous Springs", Rarity.RARE, new CardType[]{CardType.LAND}, "");
this.expansionSetCode = "10E";
this.addAbility(new ColorlessManaAbility());
Ability blackManaAbility = new BlackManaAbility();
Ability blackManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.BlackMana, new TapSourceCost());
blackManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(blackManaAbility);
Ability redManaAbility = new RedManaAbility();
Ability redManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.RedMana, new TapSourceCost());
redManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(redManaAbility);
}

View file

@ -28,14 +28,16 @@
package mage.sets.tenth;
import java.util.UUID;
import mage.Mana;
import mage.abilities.Ability;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.DamageControllerEffect;
import mage.abilities.mana.ColorlessManaAbility;
import mage.abilities.mana.SimpleManaAbility;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.abilities.Ability;
import mage.abilities.effects.common.DamageControllerEffect;
import mage.abilities.mana.BlackManaAbility;
import mage.abilities.mana.BlueManaAbility;
import mage.abilities.mana.ColorlessManaAbility;
import mage.cards.CardImpl;
import mage.constants.Zone;
/**
*
@ -46,11 +48,13 @@ public class UndergroundRiver extends CardImpl {
public UndergroundRiver(UUID ownerId) {
super(ownerId, 362, "Underground River", Rarity.RARE, new CardType[]{CardType.LAND}, "");
this.expansionSetCode = "10E";
this.addAbility(new ColorlessManaAbility());
Ability blueManaAbility = new BlueManaAbility();
Ability blueManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.BlueMana, new TapSourceCost());
blueManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(blueManaAbility);
Ability blackManaAbility = new BlackManaAbility();
Ability blackManaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.BlackMana, new TapSourceCost());
blackManaAbility.addEffect(new DamageControllerEffect(1));
this.addAbility(blackManaAbility);
}