mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
[FIN] Implement You're Not Alone
This commit is contained in:
parent
7cc09c4084
commit
c6fca7f0cd
2 changed files with 50 additions and 0 deletions
49
Mage.Sets/src/mage/cards/y/YoureNotAlone.java
Normal file
49
Mage.Sets/src/mage/cards/y/YoureNotAlone.java
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
package mage.cards.y;
|
||||
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.AddContinuousEffectToGame;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.abilities.hint.common.CreaturesYouControlHint;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.ComparisonType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class YoureNotAlone extends CardImpl {
|
||||
|
||||
private static final Condition condition = new PermanentsOnTheBattlefieldCondition(
|
||||
StaticFilters.FILTER_CONTROLLED_CREATURE, ComparisonType.MORE_THAN, 2
|
||||
);
|
||||
|
||||
public YoureNotAlone(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{W}");
|
||||
|
||||
// Target creature gets +2/+2 until end of turn. If you control three or more creatures, it gets +4/+4 until end of turn instead.
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new AddContinuousEffectToGame(new BoostTargetEffect(4, 4)),
|
||||
new AddContinuousEffectToGame(new BoostTargetEffect(2, 2)),
|
||||
condition, "target creature gets +2/+2 until end of turn. " +
|
||||
"If you control three or more creatures, it gets +4/+4 until end of turn instead"
|
||||
));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
this.getSpellAbility().addHint(CreaturesYouControlHint.instance);
|
||||
}
|
||||
|
||||
private YoureNotAlone(final YoureNotAlone card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public YoureNotAlone copy() {
|
||||
return new YoureNotAlone(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -350,6 +350,7 @@ public final class FinalFantasy extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Y'shtola Rhul", 443, Rarity.MYTHIC, mage.cards.y.YshtolaRhul.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Y'shtola Rhul", 577, Rarity.MYTHIC, mage.cards.y.YshtolaRhul.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Y'shtola Rhul", 86, Rarity.MYTHIC, mage.cards.y.YshtolaRhul.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("You're Not Alone", 44, Rarity.COMMON, mage.cards.y.YoureNotAlone.class));
|
||||
cards.add(new SetCardInfo("Yuna, Hope of Spira", 250, Rarity.MYTHIC, mage.cards.y.YunaHopeOfSpira.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Yuna, Hope of Spira", 404, Rarity.MYTHIC, mage.cards.y.YunaHopeOfSpira.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Yuna, Hope of Spira", 517, Rarity.MYTHIC, mage.cards.y.YunaHopeOfSpira.class, NON_FULL_USE_VARIOUS));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue