Guest User

Untitled

a guest
Apr 15th, 2018
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. package mage.cards.e;
  2.  
  3. import java.util.UUID;
  4. import mage.abilities.condition.LockedInCondition;
  5. import mage.abilities.condition.common.KickedCondition;
  6. import mage.abilities.decorator.ConditionalContinuousEffect;
  7. import mage.abilities.effects.Effect;
  8. import mage.abilities.effects.common.continuous.BoostTargetEffect;
  9. import mage.abilities.effects.common.UntapTargetEffect;
  10. import mage.abilities.keyword.KickerAbility;
  11. import mage.cards.CardImpl;
  12. import mage.cards.CardSetInfo;
  13. import mage.constants.CardType;
  14. import mage.constants.Duration;
  15. import mage.target.common.TargetCreaturePermanent;
  16.  
  17. /**
  18. *
  19. * @author BrewBrewBrewTheDeck
  20. */
  21. public class GiftOfGrowth extends CardImpl {
  22.  
  23. public GiftOfGrowth(UUID ownerId, CardSetInfo setInfo) {
  24. super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{G}");
  25.  
  26. // Kicker {2}
  27. this.addAbility(new KickerAbility("{2}"));
  28.  
  29. // Untap target creature.
  30. Effect effect = new UntapTargetEffect();
  31. effect.setText("Untap target creature.");
  32. this.getSpellAbility().addEffect(effect);
  33.  
  34. //It gets +2/+2 until end of turn. If this spell was kicked, that creature gets +4/+4 until end of turn instead.
  35. this.getSpellAbility().addTarget(new TargetCreaturePermanent());
  36. this.getSpellAbility().addEffect(new ConditionalContinuousEffect(new BoostTargetEffect(4, 4, Duration.EndOfTurn),
  37. new BoostTargetEffect(2, 2, Duration.EndOfTurn), new LockedInCondition(KickedCondition.instance),
  38. "Target creature gets +2/+2 until end of turn. If this spell was kicked, that creature gets +4/+4 until end of turn instead."));
  39.  
  40. }
  41.  
  42. public GiftOfGrowth(final GiftOfGrowth card) {
  43. super(card);
  44. }
  45.  
  46. @Override
  47. public GiftOfGrowth copy() {
  48. return new GiftOfGrowth(this);
  49. }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment