mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[TMT] Implement Weather Maker (#14289)
This commit is contained in:
parent
a1504547e7
commit
5ae1f65074
1 changed files with 48 additions and 0 deletions
48
Mage.Sets/src/mage/cards/w/WeatherMaker.java
Normal file
48
Mage.Sets/src/mage/cards/w/WeatherMaker.java
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
package mage.cards.w;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.common.LandfallAbility;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
import mage.abilities.mana.AnyColorManaAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.counters.CounterType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author muz
|
||||
*/
|
||||
public final class WeatherMaker extends CardImpl {
|
||||
|
||||
public WeatherMaker(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}");
|
||||
|
||||
// Landfall - Whenever a land you control enters, put a charge counter on this artifact.
|
||||
this.addAbility(new LandfallAbility(new AddCountersSourceEffect(CounterType.CHARGE.createInstance())));
|
||||
|
||||
// {T}: Add one mana of any color.
|
||||
this.addAbility(new AnyColorManaAbility());
|
||||
|
||||
// {T}, Remove two charge counters from this artifact: Add {C}{C}.
|
||||
Ability manaAbility = new SimpleManaAbility(Zone.BATTLEFIELD, Mana.ColorlessMana(2), new TapSourceCost());
|
||||
manaAbility.addCost(new RemoveCountersSourceCost(CounterType.CHARGE.createInstance(2)));
|
||||
this.addAbility(manaAbility);
|
||||
|
||||
// {T}, Remove three charge counters from this artifact: It deals 3 damage to any target.
|
||||
Ability damageAbility = new SimpleActivatedAbility(new DamageTargetEffect(3), new TapSourceCost());
|
||||
damageAbility.addCost(new RemoveCountersSourceCost(CounterType.CHARGE.createInstance(3)));
|
||||
damageAbility.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(damageAbility);
|
||||
}
|
||||
|
||||
private WeatherMaker(final WeatherMaker card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WeatherMaker copy() {
|
||||
return new WeatherMaker(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue