forked from External/mage
[WOE] Implement Agatha's Champion (#10864)
This commit is contained in:
parent
fb4ed1a6a7
commit
9e3c537f4e
2 changed files with 58 additions and 0 deletions
57
Mage.Sets/src/mage/cards/a/AgathasChampion.java
Normal file
57
Mage.Sets/src/mage/cards/a/AgathasChampion.java
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.TriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.condition.common.BargainedCondition;
|
||||
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
|
||||
import mage.abilities.effects.common.FightTargetSourceEffect;
|
||||
import mage.abilities.keyword.BargainAbility;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class AgathasChampion extends CardImpl {
|
||||
|
||||
public AgathasChampion(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{G}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.KNIGHT);
|
||||
this.power = new MageInt(4);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Bargain
|
||||
this.addAbility(new BargainAbility());
|
||||
|
||||
// Trample
|
||||
this.addAbility(TrampleAbility.getInstance());
|
||||
|
||||
// When Agatha's Champion enters the battlefield, if it was bargained, it fights up to one target creature you don't control.
|
||||
TriggeredAbility trigger = new EntersBattlefieldTriggeredAbility(new FightTargetSourceEffect());
|
||||
trigger.addTarget(new TargetPermanent(0, 1, StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL, false));
|
||||
this.addAbility(new ConditionalInterveningIfTriggeredAbility(
|
||||
trigger,
|
||||
BargainedCondition.instance,
|
||||
"When {this} enters the battlefield, if it was bargained, it fights up to one target creature you don't control."
|
||||
));
|
||||
}
|
||||
|
||||
private AgathasChampion(final AgathasChampion card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AgathasChampion copy() {
|
||||
return new AgathasChampion(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -20,6 +20,7 @@ public final class WildsOfEldraine extends ExpansionSet {
|
|||
this.blockName = "Wilds of Eldraine";
|
||||
this.hasBoosters = false; // temporary
|
||||
|
||||
cards.add(new SetCardInfo("Agatha's Champion", 160, Rarity.UNCOMMON, mage.cards.a.AgathasChampion.class));
|
||||
cards.add(new SetCardInfo("Ash, Party Crasher", 201, Rarity.UNCOMMON, mage.cards.a.AshPartyCrasher.class));
|
||||
cards.add(new SetCardInfo("Ashiok's Reaper", 79, Rarity.UNCOMMON, mage.cards.a.AshioksReaper.class));
|
||||
cards.add(new SetCardInfo("Beanstalk Wurm", 161, Rarity.COMMON, mage.cards.b.BeanstalkWurm.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue