Minor formatting and text changes.

This commit is contained in:
LevelX2 2014-03-11 16:47:05 +01:00
parent 815c20fa68
commit aedcccc269
6 changed files with 22 additions and 85 deletions

View file

@ -43,7 +43,7 @@ import mage.game.Game;
*/
public class ActivateIfConditionActivatedAbility extends ActivatedAbilityImpl<ActivateIfConditionActivatedAbility> {
private Condition condition;
private final Condition condition;
public ActivateIfConditionActivatedAbility(Zone zone, Effect effect, Cost cost, Condition condition) {
super(zone, effect, cost);

View file

@ -1,74 +0,0 @@
/*
* 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.abilities.common;
import mage.constants.Zone;
import mage.abilities.ActivatedAbilityImpl;
import mage.abilities.costs.Cost;
import mage.abilities.costs.Costs;
import mage.abilities.costs.common.MetalcraftCost;
import mage.abilities.costs.mana.ManaCosts;
import mage.abilities.effects.Effect;
/**
*
* @author BetaSteward_at_googlemail.com
*/
public class MetalcraftActivatedAbility extends ActivatedAbilityImpl<MetalcraftActivatedAbility> {
public MetalcraftActivatedAbility(Zone zone, Effect effect, ManaCosts cost) {
super(zone, effect, cost);
this.costs.add(new MetalcraftCost());
}
public MetalcraftActivatedAbility(Zone zone, Effect effect, Costs costs) {
super(zone, effect, costs);
this.costs.add(new MetalcraftCost());
}
public MetalcraftActivatedAbility(Zone zone, Effect effect, Cost cost) {
super(zone, effect, cost);
this.costs.add(new MetalcraftCost());
}
public MetalcraftActivatedAbility(MetalcraftActivatedAbility ability) {
super(ability);
}
@Override
public MetalcraftActivatedAbility copy() {
return new MetalcraftActivatedAbility(this);
}
@Override
public String getRule() {
return "Metalcraft - " + super.getRule();
}
}

View file

@ -20,7 +20,7 @@ public class MetalcraftCondition implements Condition {
filter.add(new CardTypePredicate(CardType.ARTIFACT));
}
private static MetalcraftCondition fInstance = new MetalcraftCondition();
private static final MetalcraftCondition fInstance = new MetalcraftCondition();
public static Condition getInstance() {
return fInstance;
@ -30,4 +30,10 @@ public class MetalcraftCondition implements Condition {
public boolean apply(Game game, Ability source) {
return game.getBattlefield().contains(filter, source.getControllerId(), 3, game);
}
@Override
public String toString() {
return "you control three or more artifacts";
}
}