foul-magics/Mage.Sets/src/mage/cards/s/SurgeOfThoughtweft.java
2018-06-02 17:59:49 +02:00

49 lines
1.6 KiB
Java

package mage.cards.s;
import java.util.UUID;
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
import mage.abilities.decorator.ConditionalOneShotEffect;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.effects.common.continuous.BoostControlledEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.filter.FilterPermanent;
import mage.filter.predicate.mageobject.SubtypePredicate;
/**
*
* @author fireshoes
*/
public final class SurgeOfThoughtweft extends CardImpl {
private static final FilterPermanent filter = new FilterPermanent("Kithkin");
static {
filter.add(new SubtypePredicate(SubType.KITHKIN));
}
public SurgeOfThoughtweft(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.TRIBAL,CardType.INSTANT},"{1}{W}");
this.subtype.add(SubType.KITHKIN);
// Creatures you control get +1/+1 until end of turn.
this.getSpellAbility().addEffect(new BoostControlledEffect(1, 1, Duration.EndOfTurn));
// If you control a Kithkin, draw a card.
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(new DrawCardSourceControllerEffect(1),
new PermanentsOnTheBattlefieldCondition(filter),"If you control a Kithkin, draw a card"));
}
public SurgeOfThoughtweft(final SurgeOfThoughtweft card) {
super(card);
}
@Override
public SurgeOfThoughtweft copy() {
return new SurgeOfThoughtweft(this);
}
}