[WOE] Implement Territorial Witchstalker (#11013)

This commit is contained in:
Vivian Greenslade 2023-08-29 21:56:19 -02:30 committed by GitHub
parent bbff8de53d
commit f7b355dcc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,58 @@
package mage.cards.t;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.TriggeredAbility;
import mage.abilities.common.BeginningOfCombatTriggeredAbility;
import mage.abilities.condition.common.FerociousCondition;
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
import mage.abilities.effects.common.combat.CanAttackAsThoughItDidntHaveDefenderSourceEffect;
import mage.abilities.effects.common.continuous.BoostSourceEffect;
import mage.abilities.hint.common.FerociousHint;
import mage.abilities.keyword.DefenderAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.constants.TargetController;
/**
*
* @author Xanderhall
*/
public final class TerritorialWitchstalker extends CardImpl {
public TerritorialWitchstalker(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}");
this.subtype.add(SubType.WOLF);
this.power = new MageInt(2);
this.toughness = new MageInt(3);
// Defender
this.addAbility(DefenderAbility.getInstance());
// At the beginning of combat on your turn, if you control a creature with power 4 or greater, Territorial Witchstalker gets +1/+0 until end of turn and can attack this turn as though it didn't have defender.
TriggeredAbility ability = new BeginningOfCombatTriggeredAbility(new BoostSourceEffect(1, 0, Duration.EndOfTurn), TargetController.YOU, false);
ability.addEffect(new CanAttackAsThoughItDidntHaveDefenderSourceEffect(Duration.EndOfTurn));
ability.addHint(FerociousHint.instance);
this.addAbility(new ConditionalInterveningIfTriggeredAbility(
ability,
FerociousCondition.instance,
"At the beginning of combat on your turn, if you control a creature with power 4 or greater, "
+ "{this} gets +1/+0 until end of turn and can attack this turn as though it didn't have defender"
));
}
private TerritorialWitchstalker(final TerritorialWitchstalker card) {
super(card);
}
@Override
public TerritorialWitchstalker copy() {
return new TerritorialWitchstalker(this);
}
}

View file

@ -252,6 +252,7 @@ public final class WildsOfEldraine extends ExpansionSet {
cards.add(new SetCardInfo("Tattered Ratter", 152, Rarity.UNCOMMON, mage.cards.t.TatteredRatter.class));
cards.add(new SetCardInfo("Tempest Hart", 238, Rarity.UNCOMMON, mage.cards.t.TempestHart.class));
cards.add(new SetCardInfo("Tenacious Tomeseeker", 74, Rarity.UNCOMMON, mage.cards.t.TenaciousTomeseeker.class));
cards.add(new SetCardInfo("Territorial Witchstalker", 189, Rarity.COMMON, mage.cards.t.TerritorialWitchstalker.class));
cards.add(new SetCardInfo("The Apprentice's Folly", 200, Rarity.RARE, mage.cards.t.TheApprenticesFolly.class));
cards.add(new SetCardInfo("The End", 87, Rarity.RARE, mage.cards.t.TheEnd.class));
cards.add(new SetCardInfo("The Goose Mother", 204, Rarity.RARE, mage.cards.t.TheGooseMother.class));