forked from External/mage
41 lines
1.2 KiB
Java
41 lines
1.2 KiB
Java
|
|
package mage.cards.a;
|
|
|
|
import java.util.UUID;
|
|
import mage.abilities.Ability;
|
|
import mage.abilities.common.SimpleActivatedAbility;
|
|
import mage.abilities.costs.common.TapSourceCost;
|
|
import mage.abilities.costs.mana.GenericManaCost;
|
|
import mage.abilities.effects.common.PreventDamageToTargetEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.Duration;
|
|
import mage.constants.Zone;
|
|
import mage.target.common.TargetAnyTarget;
|
|
|
|
/**
|
|
*
|
|
* @author anonymous
|
|
*/
|
|
public final class AmuletOfKroog extends CardImpl {
|
|
|
|
public AmuletOfKroog(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{2}");
|
|
|
|
// {2}, {tap}: Prevent the next 1 damage that would be dealt to any target this turn.
|
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PreventDamageToTargetEffect(Duration.EndOfTurn, 1), new GenericManaCost(2));
|
|
ability.addCost(new TapSourceCost());
|
|
ability.addTarget(new TargetAnyTarget());
|
|
this.addAbility(ability);
|
|
}
|
|
|
|
public AmuletOfKroog(final AmuletOfKroog card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public AmuletOfKroog copy() {
|
|
return new AmuletOfKroog(this);
|
|
}
|
|
}
|