forked from External/mage
[DFT] Implement Chandra, Spark Hunter
This commit is contained in:
parent
70868ad4ab
commit
c0ccbe2a2b
4 changed files with 147 additions and 0 deletions
|
|
@ -0,0 +1,38 @@
|
|||
package mage.game.command.emblems;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldAllTriggeredAbility;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.command.Emblem;
|
||||
import mage.target.common.TargetAnyTarget;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ChandraSparkHunterEmblem extends Emblem {
|
||||
|
||||
/**
|
||||
* Emblem with "Whenever an artifact you control enters, this emblem deals 3 damage to any target."
|
||||
*/
|
||||
|
||||
public ChandraSparkHunterEmblem() {
|
||||
super("Emblem Chandra");
|
||||
Ability ability = new EntersBattlefieldAllTriggeredAbility(
|
||||
Zone.COMMAND, new DamageTargetEffect(3),
|
||||
StaticFilters.FILTER_CONTROLLED_PERMANENT_ARTIFACT_AN, false
|
||||
);
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.getAbilities().add(ability);
|
||||
}
|
||||
|
||||
private ChandraSparkHunterEmblem(final ChandraSparkHunterEmblem card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ChandraSparkHunterEmblem copy() {
|
||||
return new ChandraSparkHunterEmblem(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.CrewAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class VehicleToken extends TokenImpl {
|
||||
|
||||
public VehicleToken() {
|
||||
super("Vehicle Token", "3/2 colorless Vehicle artifact token with crew 1");
|
||||
cardType.add(CardType.ARTIFACT);
|
||||
subtype.add(SubType.VEHICLE);
|
||||
power = new MageInt(3);
|
||||
toughness = new MageInt(2);
|
||||
|
||||
this.addAbility(new CrewAbility(1));
|
||||
}
|
||||
|
||||
private VehicleToken(final VehicleToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public VehicleToken copy() {
|
||||
return new VehicleToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue