mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
[FIC] Implement Gau, Feral Youth (#13632)
This commit is contained in:
parent
7a7e2b4e8f
commit
d6d5d7f2b3
2 changed files with 77 additions and 0 deletions
75
Mage.Sets/src/mage/cards/g/GauFeralYouth.java
Normal file
75
Mage.Sets/src/mage/cards/g/GauFeralYouth.java
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
package mage.cards.g;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.AttacksTriggeredAbility;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.dynamicvalue.common.SourcePermanentPowerValue;
|
||||
import mage.abilities.effects.common.DamagePlayersEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
import mage.abilities.triggers.BeginningOfEndStepTriggeredAbility;
|
||||
import mage.constants.*;
|
||||
import mage.counters.CounterType;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.game.Game;
|
||||
import mage.watchers.common.CardsLeftGraveyardWatcher;
|
||||
|
||||
/**
|
||||
* @author balazskristof
|
||||
*/
|
||||
public final class GauFeralYouth extends CardImpl {
|
||||
|
||||
public GauFeralYouth(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}");
|
||||
|
||||
this.supertype.add(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.BERSERKER);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Rage -- Whenever Gau attacks, put a +1/+1 counter on it.
|
||||
this.addAbility(new AttacksTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance())).withFlavorWord("Rage"));
|
||||
|
||||
// At the beginning of each end step, if a card left your graveyard this turn, Gau deals damage equal to its power to each opponent.
|
||||
this.addAbility(
|
||||
new BeginningOfEndStepTriggeredAbility(
|
||||
TargetController.ANY,
|
||||
new DamagePlayersEffect(SourcePermanentPowerValue.NOT_NEGATIVE, TargetController.OPPONENT)
|
||||
.setText("{this} deals damage equal to its power to each opponent"),
|
||||
false,
|
||||
GauFeralYouthCondition.instance
|
||||
),
|
||||
new CardsLeftGraveyardWatcher()
|
||||
);
|
||||
}
|
||||
|
||||
private GauFeralYouth(final GauFeralYouth card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GauFeralYouth copy() {
|
||||
return new GauFeralYouth(this);
|
||||
}
|
||||
}
|
||||
|
||||
enum GauFeralYouthCondition implements Condition {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
return !game
|
||||
.getState()
|
||||
.getWatcher(CardsLeftGraveyardWatcher.class)
|
||||
.getCardsThatLeftGraveyard(source.getControllerId(), game)
|
||||
.isEmpty();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "if a card left your graveyard this turn";
|
||||
}
|
||||
}
|
||||
|
|
@ -149,6 +149,8 @@ public final class FinalFantasyCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Furious Rise", 294, Rarity.UNCOMMON, mage.cards.f.FuriousRise.class));
|
||||
cards.add(new SetCardInfo("Furycalm Snarl", 397, Rarity.RARE, mage.cards.f.FurycalmSnarl.class));
|
||||
cards.add(new SetCardInfo("Game Trail", 398, Rarity.RARE, mage.cards.g.GameTrail.class));
|
||||
cards.add(new SetCardInfo("Gau, Feral Youth", 152, Rarity.RARE, mage.cards.g.GauFeralYouth.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Gau, Feral Youth", 55, Rarity.RARE, mage.cards.g.GauFeralYouth.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("General Leo Cristophe", 135, Rarity.RARE, mage.cards.g.GeneralLeoCristophe.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("General Leo Cristophe", 20, Rarity.RARE, mage.cards.g.GeneralLeoCristophe.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Generous Patron", 305, Rarity.RARE, mage.cards.g.GenerousPatron.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue