mirror of
https://github.com/correl/mage.git
synced 2024-11-25 11:09:53 +00:00
Fix the tooltip texts of Stormscape Master and Thornscape Master.
GainProtectionFromColorTargetEffect adds "you control" even when the target doesn't have such restriction.
This commit is contained in:
parent
3f1a1f516c
commit
bb68550044
2 changed files with 8 additions and 4 deletions
|
@ -33,6 +33,7 @@ import mage.abilities.Ability;
|
||||||
import mage.abilities.common.SimpleActivatedAbility;
|
import mage.abilities.common.SimpleActivatedAbility;
|
||||||
import mage.abilities.costs.common.TapSourceCost;
|
import mage.abilities.costs.common.TapSourceCost;
|
||||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||||
|
import mage.abilities.effects.Effect;
|
||||||
import mage.abilities.effects.common.GainLifeEffect;
|
import mage.abilities.effects.common.GainLifeEffect;
|
||||||
import mage.abilities.effects.common.LoseLifeTargetEffect;
|
import mage.abilities.effects.common.LoseLifeTargetEffect;
|
||||||
import mage.abilities.effects.common.continuous.GainProtectionFromColorTargetEffect;
|
import mage.abilities.effects.common.continuous.GainProtectionFromColorTargetEffect;
|
||||||
|
@ -60,8 +61,9 @@ public class StormscapeMaster extends CardImpl {
|
||||||
this.toughness = new MageInt(2);
|
this.toughness = new MageInt(2);
|
||||||
|
|
||||||
// {W}{W}, {T}: Target creature gains protection from the color of your choice until end of turn.
|
// {W}{W}, {T}: Target creature gains protection from the color of your choice until end of turn.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainProtectionFromColorTargetEffect(Duration.EndOfTurn),
|
Effect effect = new GainProtectionFromColorTargetEffect(Duration.EndOfTurn);
|
||||||
new ManaCostsImpl("{W}{W}"));
|
effect.setText("Target creature gains protection from the color of your choice until end of turn.");
|
||||||
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{W}{W}"));
|
||||||
ability.addCost(new TapSourceCost());
|
ability.addCost(new TapSourceCost());
|
||||||
ability.addTarget(new TargetCreaturePermanent());
|
ability.addTarget(new TargetCreaturePermanent());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
|
@ -33,6 +33,7 @@ import mage.abilities.Ability;
|
||||||
import mage.abilities.common.SimpleActivatedAbility;
|
import mage.abilities.common.SimpleActivatedAbility;
|
||||||
import mage.abilities.costs.common.TapSourceCost;
|
import mage.abilities.costs.common.TapSourceCost;
|
||||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||||
|
import mage.abilities.effects.Effect;
|
||||||
import mage.abilities.effects.common.DamageTargetEffect;
|
import mage.abilities.effects.common.DamageTargetEffect;
|
||||||
import mage.abilities.effects.common.continuous.GainProtectionFromColorTargetEffect;
|
import mage.abilities.effects.common.continuous.GainProtectionFromColorTargetEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
|
@ -63,8 +64,9 @@ public class ThornscapeMaster extends CardImpl {
|
||||||
ability.addTarget(new TargetCreaturePermanent());
|
ability.addTarget(new TargetCreaturePermanent());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
// {W}{W}, {T}: Target creature gains protection from the color of your choice until end of turn.
|
// {W}{W}, {T}: Target creature gains protection from the color of your choice until end of turn.
|
||||||
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainProtectionFromColorTargetEffect(Duration.EndOfTurn),
|
Effect effect = new GainProtectionFromColorTargetEffect(Duration.EndOfTurn);
|
||||||
new ManaCostsImpl("{W}{W}"));
|
effect.setText("Target creature gains protection from the color of your choice until end of turn.");
|
||||||
|
ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new ManaCostsImpl("{W}{W}"));
|
||||||
ability.addCost(new TapSourceCost());
|
ability.addCost(new TapSourceCost());
|
||||||
ability.addTarget(new TargetCreaturePermanent());
|
ability.addTarget(new TargetCreaturePermanent());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
Loading…
Reference in a new issue