mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 19:59:54 -08:00
* CantBeCounteredControlledEffect - Fixed a bug that the counter source was not cheched correctly (e.g. it was possible to counter spells with blue counters after Autumn's Veil).
This commit is contained in:
parent
b2e27f17f1
commit
23d431a65a
5 changed files with 84 additions and 5 deletions
|
|
@ -42,6 +42,7 @@ import mage.target.TargetSpell;
|
|||
* @author Loki
|
||||
*/
|
||||
public class SpellSnare extends CardImpl {
|
||||
|
||||
private static final FilterSpell filter = new FilterSpell("spell with converted mana cost 2");
|
||||
|
||||
static {
|
||||
|
|
@ -52,8 +53,6 @@ public class SpellSnare extends CardImpl {
|
|||
super(ownerId, 33, "Spell Snare", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{U}");
|
||||
this.expansionSetCode = "DIS";
|
||||
|
||||
this.color.setBlue(true);
|
||||
|
||||
// Counter target spell with converted mana cost 2.
|
||||
this.getSpellAbility().addEffect(new CounterTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetSpell(filter));
|
||||
|
|
|
|||
|
|
@ -60,9 +60,10 @@ public class AutumnsVeil extends CardImpl {
|
|||
public AutumnsVeil(UUID ownerId) {
|
||||
super(ownerId, 162, "Autumn's Veil", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{G}");
|
||||
this.expansionSetCode = "M11";
|
||||
this.color.setGreen(true);
|
||||
|
||||
// Spells you control can't be countered by blue or black spells this turn
|
||||
this.getSpellAbility().addEffect(new CantBeCounteredControlledEffect(filterTarget1, filterSource, Duration.EndOfTurn));
|
||||
|
||||
// and creatures you control can't be the targets of blue or black spells this turn.
|
||||
this.getSpellAbility().addEffect(new CantBeTargetedAllEffect(filterTarget2, filterSource, Duration.EndOfTurn));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue