mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
[GN3] Implement Nogi, Draco-Zealot (#9747)
This commit is contained in:
parent
b59016ce95
commit
af36709e2f
2 changed files with 78 additions and 0 deletions
77
Mage.Sets/src/mage/cards/n/NogiDracoZealot.java
Normal file
77
Mage.Sets/src/mage/cards/n/NogiDracoZealot.java
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
package mage.cards.n;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.AttacksTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
|
||||
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
|
||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||
import mage.abilities.effects.common.continuous.BecomesCreatureSourceEffect;
|
||||
import mage.abilities.effects.common.cost.SpellsCostReductionControllerEffect;
|
||||
import mage.abilities.hint.Hint;
|
||||
import mage.abilities.hint.ValueHint;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.game.permanent.token.custom.CreatureToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author PurpleCrowbar
|
||||
*/
|
||||
public final class NogiDracoZealot extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterControlledPermanent();
|
||||
private static final FilterCard filter2 = new FilterCard("Dragon spells");
|
||||
|
||||
static {
|
||||
filter.add(SubType.DRAGON.getPredicate());
|
||||
filter2.add(SubType.DRAGON.getPredicate());
|
||||
}
|
||||
|
||||
private static final Condition condition
|
||||
= new PermanentsOnTheBattlefieldCondition(filter, ComparisonType.MORE_THAN, 2);
|
||||
|
||||
private static final Hint hint
|
||||
= new ValueHint("Dragons you control", new PermanentsOnBattlefieldCount(filter));
|
||||
|
||||
public NogiDracoZealot(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}{R}");
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.KOBOLD, SubType.SHAMAN);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Dragon spells you cast cost {1} less to cast.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new SpellsCostReductionControllerEffect(filter2, 1)));
|
||||
|
||||
// Whenever Nogi, Draco-Zealot attacks, if you control three or more Dragons, until end
|
||||
// of turn, Nogi becomes a Dragon with base power and toughness 5/5 and gains flying.
|
||||
Ability ability = new ConditionalInterveningIfTriggeredAbility(
|
||||
new AttacksTriggeredAbility(new BecomesCreatureSourceEffect(
|
||||
new CreatureToken(5, 5, "Dragon with base power and toughness 5/5 and gains flying")
|
||||
.withSubType(SubType.DRAGON)
|
||||
.withAbility(FlyingAbility.getInstance()),
|
||||
"", Duration.EndOfTurn), false
|
||||
), condition, "Whenever {this} attacks, if you control three or more Dragons, until end of turn, " +
|
||||
"{this} becomes a Dragon with base power and toughness 5/5 and gains flying"
|
||||
);
|
||||
this.addAbility(ability.addHint(hint));
|
||||
}
|
||||
|
||||
private NogiDracoZealot(final NogiDracoZealot card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NogiDracoZealot copy() {
|
||||
return new NogiDracoZealot(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -22,6 +22,7 @@ public class GameNight2022 extends ExpansionSet {
|
|||
this.hasBoosters = false;
|
||||
this.hasBasicLands = false; //temporary
|
||||
|
||||
cards.add(new SetCardInfo("Nogi, Draco-Zealot", 4, Rarity.MYTHIC, mage.cards.n.NogiDracoZealot.class));
|
||||
cards.add(new SetCardInfo("Zamriel, Seraph of Steel", 1, Rarity.MYTHIC, mage.cards.z.ZamrielSeraphOfSteel.class));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue