mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
[FUT] fixed Keldon Megaliths not tapping as a cost (fixes #7458)
This commit is contained in:
parent
7286593c64
commit
ec888cb21c
1 changed files with 12 additions and 7 deletions
|
@ -1,41 +1,46 @@
|
|||
|
||||
package mage.cards.k;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTappedAbility;
|
||||
import mage.abilities.condition.common.HellbentCondition;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.decorator.ConditionalActivatedAbility;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.mana.RedManaAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.AbilityWord;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Zone;
|
||||
import mage.target.common.TargetAnyTarget;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author anonymous
|
||||
*/
|
||||
public final class KeldonMegaliths extends CardImpl {
|
||||
|
||||
public KeldonMegaliths(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
|
||||
super(ownerId, setInfo, new CardType[]{CardType.LAND}, "");
|
||||
|
||||
// Keldon Megaliths enters the battlefield tapped.
|
||||
this.addAbility(new EntersBattlefieldTappedAbility());
|
||||
// {tap}: Add {R}.
|
||||
this.addAbility(new RedManaAbility());
|
||||
// Hellbent - {1}{R}, {tap}: Keldon Megaliths deals 1 damage to any target. Activate this ability only if you have no cards in hand.
|
||||
Ability ability = new ConditionalActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new ManaCostsImpl<>("{1}{R}"), HellbentCondition.instance,
|
||||
"<i>Hellbent</i> — {1}{R}, {T}: {this} deals 1 damage to any target. Activate this ability only if you have no cards in hand.");
|
||||
Ability ability = new ConditionalActivatedAbility(
|
||||
Zone.BATTLEFIELD, new DamageTargetEffect(1),
|
||||
new ManaCostsImpl<>("{1}{R}"), HellbentCondition.instance
|
||||
);
|
||||
ability.setAbilityWord(AbilityWord.HELLBENT);
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
public KeldonMegaliths(final KeldonMegaliths card) {
|
||||
private KeldonMegaliths(final KeldonMegaliths card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue