foul-magics/Mage.Sets/src/mage/cards/v/ViashinoPyromancer.java
2023-04-30 11:28:06 -04:00

42 lines
1.3 KiB
Java

package mage.cards.v;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.target.common.TargetPlayerOrPlaneswalker;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ViashinoPyromancer extends CardImpl {
public ViashinoPyromancer(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}");
this.subtype.add(SubType.VIASHINO);
this.subtype.add(SubType.WIZARD);
this.power = new MageInt(2);
this.toughness = new MageInt(1);
// When Viashino Pyromancer enters the battlefield, it deals 2 damage to target player or planeswalker.
Ability ability = new EntersBattlefieldTriggeredAbility(new DamageTargetEffect(2, "it"));
ability.addTarget(new TargetPlayerOrPlaneswalker());
this.addAbility(ability);
}
private ViashinoPyromancer(final ViashinoPyromancer card) {
super(card);
}
@Override
public ViashinoPyromancer copy() {
return new ViashinoPyromancer(this);
}
}