mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
* Stromgald Cabal - Fixed that he could counter blue spells instead of correctly white spells.
This commit is contained in:
parent
00924d45e3
commit
90d516f15d
3 changed files with 10 additions and 11 deletions
|
|
@ -28,14 +28,13 @@
|
|||
package mage.sets.iceage;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Rarity;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.Rarity;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.target.TargetPermanent;
|
||||
|
|
@ -54,7 +53,7 @@ public class Pyroblast extends CardImpl<Pyroblast> {
|
|||
this.color.setRed(true);
|
||||
|
||||
// Choose one - Counter target spell if it's blue; or destroy target permanent if it's blue.
|
||||
this.getSpellAbility().addEffect(new CounterTargetEffect());
|
||||
this.getSpellAbility().addEffect(new PyroblastCounterTargetEffect());
|
||||
this.getSpellAbility().addTarget(new TargetSpell());
|
||||
|
||||
Mode mode = new Mode();
|
||||
|
|
@ -74,19 +73,19 @@ public class Pyroblast extends CardImpl<Pyroblast> {
|
|||
}
|
||||
}
|
||||
|
||||
class CounterTargetEffect extends OneShotEffect<CounterTargetEffect> {
|
||||
class PyroblastCounterTargetEffect extends OneShotEffect<PyroblastCounterTargetEffect> {
|
||||
|
||||
public CounterTargetEffect() {
|
||||
public PyroblastCounterTargetEffect() {
|
||||
super(Outcome.Detriment);
|
||||
}
|
||||
|
||||
public CounterTargetEffect(final CounterTargetEffect effect) {
|
||||
public PyroblastCounterTargetEffect(final PyroblastCounterTargetEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CounterTargetEffect copy() {
|
||||
return new CounterTargetEffect(this);
|
||||
public PyroblastCounterTargetEffect copy() {
|
||||
return new PyroblastCounterTargetEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@
|
|||
*/
|
||||
package mage.sets.iceage;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.ObjectColor;
|
||||
|
|
@ -35,6 +34,7 @@ import mage.abilities.Ability;
|
|||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.PayLifeCost;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.effects.common.CounterTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Rarity;
|
||||
|
|
|
|||
|
|
@ -28,10 +28,10 @@
|
|||
package mage.abilities.effects.common;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.constants.Outcome;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.constants.Outcome;
|
||||
import mage.game.Game;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue