mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
[BLB] Implement Warren Warleader
This commit is contained in:
parent
4ccebc33bd
commit
f4c2171fd1
2 changed files with 57 additions and 0 deletions
56
Mage.Sets/src/mage/cards/w/WarrenWarleader.java
Normal file
56
Mage.Sets/src/mage/cards/w/WarrenWarleader.java
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
package mage.cards.w;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.AttacksWithCreaturesTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostControlledEffect;
|
||||
import mage.abilities.keyword.OffspringAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.permanent.token.RabbitToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class WarrenWarleader extends CardImpl {
|
||||
|
||||
public WarrenWarleader(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}{W}");
|
||||
|
||||
this.subtype.add(SubType.RABBIT);
|
||||
this.subtype.add(SubType.KNIGHT);
|
||||
this.power = new MageInt(4);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Offspring {2}
|
||||
this.addAbility(new OffspringAbility("{2}"));
|
||||
|
||||
// Whenever you attack, choose one --
|
||||
// * Create a 1/1 white Rabbit creature token that's tapped and attacking.
|
||||
Ability ability = new AttacksWithCreaturesTriggeredAbility(
|
||||
new CreateTokenEffect(new RabbitToken(), 1, true, true), 1
|
||||
);
|
||||
|
||||
// * Attacking creatures you control get +1/+1 until end of turn.
|
||||
ability.addEffect(new BoostControlledEffect(
|
||||
1, 1, Duration.EndOfTurn, StaticFilters.FILTER_ATTACKING_CREATURES
|
||||
));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private WarrenWarleader(final WarrenWarleader card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WarrenWarleader copy() {
|
||||
return new WarrenWarleader(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -64,6 +64,7 @@ public final class Bloomburrow extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Tempest Angler", 235, Rarity.COMMON, mage.cards.t.TempestAngler.class));
|
||||
cards.add(new SetCardInfo("Tender Wildguide", 196, Rarity.RARE, mage.cards.t.TenderWildguide.class));
|
||||
cards.add(new SetCardInfo("Thundertrap Trainer", 78, Rarity.RARE, mage.cards.t.ThundertrapTrainer.class));
|
||||
cards.add(new SetCardInfo("Warren Warleader", 38, Rarity.MYTHIC, mage.cards.w.WarrenWarleader.class));
|
||||
|
||||
cards.removeIf(setCardInfo -> unfinished.contains(setCardInfo.getName())); // remove when mechanic is implemented
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue