forked from External/mage
41 lines
1.2 KiB
Java
41 lines
1.2 KiB
Java
|
|
package mage.cards.s;
|
|
|
|
import java.util.UUID;
|
|
import mage.MageInt;
|
|
import mage.abilities.common.BlocksTriggeredAbility;
|
|
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
|
import mage.abilities.keyword.DefenderAbility;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
import mage.counters.BoostCounter;
|
|
|
|
/**
|
|
*
|
|
* @author dustinconrad
|
|
*/
|
|
public final class ShieldSphere extends CardImpl {
|
|
|
|
public ShieldSphere(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT,CardType.CREATURE},"{0}");
|
|
this.subtype.add(SubType.WALL);
|
|
this.power = new MageInt(0);
|
|
this.toughness = new MageInt(6);
|
|
|
|
// Defender
|
|
this.addAbility(DefenderAbility.getInstance());
|
|
// Whenever Shield Sphere blocks, put a -0/-1 counter on it.
|
|
this.addAbility(new BlocksTriggeredAbility(new AddCountersSourceEffect(new BoostCounter(0, -1)), false));
|
|
}
|
|
|
|
public ShieldSphere(final ShieldSphere card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public ShieldSphere copy() {
|
|
return new ShieldSphere(this);
|
|
}
|
|
}
|