forked from External/mage
[FDN] Implement Courageous Goblin
This commit is contained in:
parent
88fe7619dd
commit
1afe35e503
2 changed files with 51 additions and 0 deletions
50
Mage.Sets/src/mage/cards/c/CourageousGoblin.java
Normal file
50
Mage.Sets/src/mage/cards/c/CourageousGoblin.java
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.AttacksTriggeredAbility;
|
||||
import mage.abilities.condition.common.FerociousCondition;
|
||||
import mage.abilities.decorator.ConditionalTriggeredAbility;
|
||||
import mage.abilities.effects.common.continuous.BoostSourceEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
|
||||
import mage.abilities.keyword.MenaceAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author ciaccona007
|
||||
*/
|
||||
public final class CourageousGoblin extends CardImpl {
|
||||
|
||||
public CourageousGoblin(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}");
|
||||
|
||||
this.subtype.add(SubType.GOBLIN);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Whenever this creature attacks while you control a creature with power 4 or greater, this creature gets +1/+0 and gains menace until end of turn.
|
||||
Ability ability = new ConditionalTriggeredAbility(
|
||||
new AttacksTriggeredAbility(new BoostSourceEffect(1, 0, Duration.EndOfTurn), false),
|
||||
FerociousCondition.instance,
|
||||
"Whenever this creature attacks while you control a creature with power 4 or greater, this creature gets +1/+0 and gains menace until end of turn"
|
||||
);
|
||||
ability.addEffect(new GainAbilitySourceEffect(new MenaceAbility(), Duration.EndOfTurn));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private CourageousGoblin(final CourageousGoblin card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CourageousGoblin copy() {
|
||||
return new CourageousGoblin(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -109,6 +109,7 @@ public final class Foundations extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Confiscate", 709, Rarity.UNCOMMON, mage.cards.c.Confiscate.class));
|
||||
cards.add(new SetCardInfo("Consuming Aberration", 238, Rarity.RARE, mage.cards.c.ConsumingAberration.class));
|
||||
cards.add(new SetCardInfo("Corsair Captain", 506, Rarity.RARE, mage.cards.c.CorsairCaptain.class));
|
||||
cards.add(new SetCardInfo("Courageous Goblin", 82, Rarity.COMMON, mage.cards.c.CourageousGoblin.class));
|
||||
cards.add(new SetCardInfo("Crackling Cyclops", 83, Rarity.COMMON, mage.cards.c.CracklingCyclops.class));
|
||||
cards.add(new SetCardInfo("Crash Through", 620, Rarity.COMMON, mage.cards.c.CrashThrough.class));
|
||||
cards.add(new SetCardInfo("Crawling Barrens", 685, Rarity.RARE, mage.cards.c.CrawlingBarrens.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue