mirror of
https://github.com/correl/mage.git
synced 2025-01-13 11:01:58 +00:00
* Wirewood Lodge - Fixed that the land produces correctly colorless mana instead of green mana.
This commit is contained in:
parent
d7677ff3d1
commit
cf4ada4417
1 changed files with 14 additions and 16 deletions
|
@ -28,18 +28,15 @@
|
||||||
package mage.sets.onslaught;
|
package mage.sets.onslaught;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import mage.constants.CardType;
|
|
||||||
import mage.constants.Rarity;
|
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.SimpleActivatedAbility;
|
import mage.abilities.common.SimpleActivatedAbility;
|
||||||
import mage.abilities.costs.Costs;
|
|
||||||
import mage.abilities.costs.CostsImpl;
|
|
||||||
import mage.abilities.costs.common.TapSourceCost;
|
import mage.abilities.costs.common.TapSourceCost;
|
||||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||||
import mage.abilities.effects.common.UntapTargetEffect;
|
import mage.abilities.effects.common.UntapTargetEffect;
|
||||||
import mage.abilities.mana.GreenManaAbility;
|
import mage.abilities.mana.ColorlessManaAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.Rarity;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||||
|
@ -50,6 +47,7 @@ import mage.target.common.TargetCreaturePermanent;
|
||||||
* @author Melkhior
|
* @author Melkhior
|
||||||
*/
|
*/
|
||||||
public class WirewoodLodge extends CardImpl<WirewoodLodge> {
|
public class WirewoodLodge extends CardImpl<WirewoodLodge> {
|
||||||
|
|
||||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Elf");
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Elf");
|
||||||
static {
|
static {
|
||||||
filter.add(new SubtypePredicate("Elf"));
|
filter.add(new SubtypePredicate("Elf"));
|
||||||
|
@ -58,15 +56,15 @@ public class WirewoodLodge extends CardImpl<WirewoodLodge> {
|
||||||
public WirewoodLodge(UUID ownerId) {
|
public WirewoodLodge(UUID ownerId) {
|
||||||
super(ownerId, 329, "Wirewood Lodge", Rarity.RARE, new CardType[]{CardType.LAND}, "");
|
super(ownerId, 329, "Wirewood Lodge", Rarity.RARE, new CardType[]{CardType.LAND}, "");
|
||||||
this.expansionSetCode = "ONS";
|
this.expansionSetCode = "ONS";
|
||||||
Ability greenManaAbility = new GreenManaAbility();
|
|
||||||
this.addAbility(greenManaAbility);
|
// {T}: Add {1} to your mana pool.
|
||||||
Costs costs = new CostsImpl();
|
this.addAbility(new ColorlessManaAbility());
|
||||||
costs.add(new TapSourceCost());
|
|
||||||
costs.add(new ManaCostsImpl("{G}"));
|
// {G}, {T}: Untap target Elf.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), costs);
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), new ManaCostsImpl("{G}"));
|
||||||
TargetCreaturePermanent target = new TargetCreaturePermanent(filter);
|
ability.addCost(new TapSourceCost());
|
||||||
ability.addTarget(target);
|
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
||||||
public WirewoodLodge(final WirewoodLodge card) {
|
public WirewoodLodge(final WirewoodLodge card) {
|
||||||
|
@ -77,4 +75,4 @@ public class WirewoodLodge extends CardImpl<WirewoodLodge> {
|
||||||
public WirewoodLodge copy() {
|
public WirewoodLodge copy() {
|
||||||
return new WirewoodLodge(this);
|
return new WirewoodLodge(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue