Implement Fireborn Knight

This commit is contained in:
jmharmon 2019-09-04 18:56:22 -07:00 committed by GitHub
parent e421242365
commit cc58b9fb2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,47 @@
package mage.cards.f;
import mage.MageInt;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.continuous.BoostSourceEffect;
import mage.abilities.keyword.DoubleStrikeAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.constants.Zone;
import java.util.UUID;
/**
* @author jmharmon
*/
public final class FirebornKnight extends CardImpl {
public FirebornKnight(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{R/W}{R/W}{R/W}{R/W}");
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.KNIGHT);
this.power = new MageInt(2);
this.toughness = new MageInt(3);
// Double strike
this.addAbility(DoubleStrikeAbility.getInstance());
// {R/W}{R/W}{R/W}{R/W}: Fireborn Knight gets +1/+1 until end of turn.
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 1, Duration.EndOfTurn),
new ManaCostsImpl("{R/W}{R/W}{R/W}{R/W}")));
}
public FirebornKnight(final FirebornKnight card) {
super(card);
}
@Override
public FirebornKnight copy() {
return new FirebornKnight(this);
}
}