mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
[BRC] Implement Urza's Workshop
This commit is contained in:
parent
fee8fc76cf
commit
b246631db6
4 changed files with 65 additions and 0 deletions
55
Mage.Sets/src/mage/cards/u/UrzasWorkshop.java
Normal file
55
Mage.Sets/src/mage/cards/u/UrzasWorkshop.java
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
package mage.cards.u;
|
||||||
|
|
||||||
|
import mage.Mana;
|
||||||
|
import mage.abilities.condition.common.MetalcraftCondition;
|
||||||
|
import mage.abilities.dynamicvalue.DynamicValue;
|
||||||
|
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||||
|
import mage.abilities.hint.Hint;
|
||||||
|
import mage.abilities.hint.ValueHint;
|
||||||
|
import mage.abilities.hint.common.MetalcraftHint;
|
||||||
|
import mage.abilities.mana.ColorlessManaAbility;
|
||||||
|
import mage.abilities.mana.DynamicManaAbility;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.AbilityWord;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.SubType;
|
||||||
|
import mage.filter.common.FilterControlledLandPermanent;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class UrzasWorkshop extends CardImpl {
|
||||||
|
|
||||||
|
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(new FilterControlledLandPermanent(
|
||||||
|
SubType.URZAS, "Urza's land you control. Activate only if you control three or more artifacts"
|
||||||
|
));
|
||||||
|
private static final Hint hint = new ValueHint("Urza's lands you control", xValue);
|
||||||
|
|
||||||
|
public UrzasWorkshop(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
||||||
|
|
||||||
|
this.subtype.add(SubType.URZAS);
|
||||||
|
|
||||||
|
// {T}: Add {C}.
|
||||||
|
this.addAbility(new ColorlessManaAbility());
|
||||||
|
|
||||||
|
// Metalcraft -- {T}: Add {C} for each Urza's land you control. Activate only if you control three or more artifacts.
|
||||||
|
this.addAbility(new DynamicManaAbility(Mana.ColorlessMana(1), xValue, (String) null)
|
||||||
|
.setCondition(MetalcraftCondition.instance)
|
||||||
|
.setAbilityWord(AbilityWord.METALCRAFT)
|
||||||
|
.addHint(MetalcraftHint.instance)
|
||||||
|
.addHint(hint));
|
||||||
|
}
|
||||||
|
|
||||||
|
private UrzasWorkshop(final UrzasWorkshop card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public UrzasWorkshop copy() {
|
||||||
|
return new UrzasWorkshop(this);
|
||||||
|
}
|
||||||
|
}
|
|
@ -168,6 +168,7 @@ public final class TheBrothersWarCommander extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Traxos, Scourge of Kroog", 170, Rarity.RARE, mage.cards.t.TraxosScourgeOfKroog.class));
|
cards.add(new SetCardInfo("Traxos, Scourge of Kroog", 170, Rarity.RARE, mage.cards.t.TraxosScourgeOfKroog.class));
|
||||||
cards.add(new SetCardInfo("Unbreakable Formation", 78, Rarity.RARE, mage.cards.u.UnbreakableFormation.class));
|
cards.add(new SetCardInfo("Unbreakable Formation", 78, Rarity.RARE, mage.cards.u.UnbreakableFormation.class));
|
||||||
cards.add(new SetCardInfo("Urza's Ruinous Blast", 79, Rarity.RARE, mage.cards.u.UrzasRuinousBlast.class));
|
cards.add(new SetCardInfo("Urza's Ruinous Blast", 79, Rarity.RARE, mage.cards.u.UrzasRuinousBlast.class));
|
||||||
|
cards.add(new SetCardInfo("Urza's Workshop", 28, Rarity.RARE, mage.cards.u.UrzasWorkshop.class));
|
||||||
cards.add(new SetCardInfo("Urza, Chief Artificer", 2, Rarity.MYTHIC, mage.cards.u.UrzaChiefArtificer.class));
|
cards.add(new SetCardInfo("Urza, Chief Artificer", 2, Rarity.MYTHIC, mage.cards.u.UrzaChiefArtificer.class));
|
||||||
cards.add(new SetCardInfo("Vault of Whispers", 211, Rarity.COMMON, mage.cards.v.VaultOfWhispers.class));
|
cards.add(new SetCardInfo("Vault of Whispers", 211, Rarity.COMMON, mage.cards.v.VaultOfWhispers.class));
|
||||||
cards.add(new SetCardInfo("Vedalken Humiliator", 100, Rarity.RARE, mage.cards.v.VedalkenHumiliator.class));
|
cards.add(new SetCardInfo("Vedalken Humiliator", 100, Rarity.RARE, mage.cards.v.VedalkenHumiliator.class));
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package mage.abilities;
|
package mage.abilities;
|
||||||
|
|
||||||
import mage.ApprovingObject;
|
import mage.ApprovingObject;
|
||||||
|
import mage.abilities.condition.Condition;
|
||||||
import mage.abilities.mana.ManaOptions;
|
import mage.abilities.mana.ManaOptions;
|
||||||
import mage.constants.TargetController;
|
import mage.constants.TargetController;
|
||||||
import mage.constants.TimingRule;
|
import mage.constants.TimingRule;
|
||||||
|
@ -83,4 +84,6 @@ public interface ActivatedAbility extends Ability {
|
||||||
int getMaxActivationsPerTurn(Game game);
|
int getMaxActivationsPerTurn(Game game);
|
||||||
|
|
||||||
public void setTiming(TimingRule timing);
|
public void setTiming(TimingRule timing);
|
||||||
|
|
||||||
|
public ActivatedAbility setCondition(Condition condition);
|
||||||
}
|
}
|
||||||
|
|
|
@ -310,4 +310,10 @@ public abstract class ActivatedAbilityImpl extends AbilityImpl implements Activa
|
||||||
game.getState().setValue(CardUtil
|
game.getState().setValue(CardUtil
|
||||||
.getCardZoneString("totalActivations" + originalId, sourceId, game), activationInfo.totalActivations);
|
.getCardZoneString("totalActivations" + originalId, sourceId, game), activationInfo.totalActivations);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ActivatedAbilityImpl setCondition(Condition condition) {
|
||||||
|
this.condition = condition;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue