mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 12:19:59 -08:00
[ECL] Implement Thoughtweft Charge
This commit is contained in:
parent
bde50b07d7
commit
92f2e9a05e
2 changed files with 42 additions and 0 deletions
41
Mage.Sets/src/mage/cards/t/ThoughtweftCharge.java
Normal file
41
Mage.Sets/src/mage/cards/t/ThoughtweftCharge.java
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.abilities.condition.common.CreatureEnteredUnderYourControlCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
import mage.watchers.common.CreatureEnteredControllerWatcher;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ThoughtweftCharge extends CardImpl {
|
||||
|
||||
public ThoughtweftCharge(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{G}");
|
||||
|
||||
// Target creature gets +3/+3 until end of turn. If a creature entered the battlefield under your control this turn, draw a card.
|
||||
this.getSpellAbility().addEffect(new BoostTargetEffect(3, 3));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new DrawCardSourceControllerEffect(1), CreatureEnteredUnderYourControlCondition.instance,
|
||||
"If a creature entered the battlefield under your control this turn, draw a card"
|
||||
));
|
||||
this.getSpellAbility().addWatcher(new CreatureEnteredControllerWatcher());
|
||||
}
|
||||
|
||||
private ThoughtweftCharge(final ThoughtweftCharge card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ThoughtweftCharge copy() {
|
||||
return new ThoughtweftCharge(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -223,6 +223,7 @@ public final class LorwynEclipsed extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Temple Garden", 351, Rarity.RARE, mage.cards.t.TempleGarden.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Temporal Cleansing", 78, Rarity.COMMON, mage.cards.t.TemporalCleansing.class));
|
||||
cards.add(new SetCardInfo("Tend the Sprigs", 197, Rarity.COMMON, mage.cards.t.TendTheSprigs.class));
|
||||
cards.add(new SetCardInfo("Thoughtweft Charge", 198, Rarity.UNCOMMON, mage.cards.t.ThoughtweftCharge.class));
|
||||
cards.add(new SetCardInfo("Thoughtweft Lieutenant", 246, Rarity.UNCOMMON, mage.cards.t.ThoughtweftLieutenant.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Thoughtweft Lieutenant", 343, Rarity.UNCOMMON, mage.cards.t.ThoughtweftLieutenant.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Trystan, Callous Cultivator", 199, Rarity.RARE, mage.cards.t.TrystanCallousCultivator.class, NON_FULL_USE_VARIOUS));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue