mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
[TLE] Implement Stand United
This commit is contained in:
parent
6ba8c6fb90
commit
9b0f09ce91
2 changed files with 67 additions and 0 deletions
66
Mage.Sets/src/mage/cards/s/StandUnited.java
Normal file
66
Mage.Sets/src/mage/cards/s/StandUnited.java
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.SubType;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.players.Player;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class StandUnited extends CardImpl {
|
||||
|
||||
public StandUnited(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{G/W}");
|
||||
|
||||
// Target creature gets +2/+2 until end of turn. If it's an Ally, scry 2.
|
||||
this.getSpellAbility().addEffect(new BoostTargetEffect(2, 2));
|
||||
this.getSpellAbility().addEffect(new StandUnitedEffect());
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
}
|
||||
|
||||
private StandUnited(final StandUnited card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public StandUnited copy() {
|
||||
return new StandUnited(this);
|
||||
}
|
||||
}
|
||||
|
||||
class StandUnitedEffect extends OneShotEffect {
|
||||
|
||||
StandUnitedEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "If it's an Ally, scry 2";
|
||||
}
|
||||
|
||||
private StandUnitedEffect(final StandUnitedEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public StandUnitedEffect copy() {
|
||||
return new StandUnitedEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
Permanent permanent = game.getPermanent(getTargetPointer().getFirst(game, source));
|
||||
return player != null && permanent != null
|
||||
&& permanent.hasSubtype(SubType.ALLY, game)
|
||||
&& player.scry(2, source, game);
|
||||
}
|
||||
}
|
||||
|
|
@ -260,6 +260,7 @@ public final class AvatarTheLastAirbenderEternal extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Sokka, Wolf Cove's Protector", 274, Rarity.UNCOMMON, mage.cards.s.SokkaWolfCovesProtector.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Sol Ring", 316, Rarity.RARE, mage.cards.s.SolRing.class));
|
||||
cards.add(new SetCardInfo("Solid Ground", 142, Rarity.UNCOMMON, mage.cards.s.SolidGround.class));
|
||||
cards.add(new SetCardInfo("Stand United", 149, Rarity.COMMON, mage.cards.s.StandUnited.class));
|
||||
cards.add(new SetCardInfo("Standstill", 19, Rarity.MYTHIC, mage.cards.s.Standstill.class));
|
||||
cards.add(new SetCardInfo("Suki, Kyoshi Captain", 175, Rarity.RARE, mage.cards.s.SukiKyoshiCaptain.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Suki, Kyoshi Captain", 85, Rarity.RARE, mage.cards.s.SukiKyoshiCaptain.class, NON_FULL_USE_VARIOUS));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue