mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
[XLN] fixed Kopala, Warden of Waves applying both effects to spells
This commit is contained in:
parent
a6a02b369f
commit
dc4bde0646
1 changed files with 6 additions and 14 deletions
|
@ -2,8 +2,6 @@ package mage.cards.k;
|
||||||
|
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.ActivatedAbility;
|
|
||||||
import mage.abilities.SpellAbility;
|
|
||||||
import mage.abilities.common.SimpleStaticAbility;
|
import mage.abilities.common.SimpleStaticAbility;
|
||||||
import mage.abilities.effects.common.cost.CostModificationEffectImpl;
|
import mage.abilities.effects.common.cost.CostModificationEffectImpl;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
|
@ -32,10 +30,10 @@ public final class KopalaWardenOfWaves extends CardImpl {
|
||||||
this.toughness = new MageInt(2);
|
this.toughness = new MageInt(2);
|
||||||
|
|
||||||
// Spells your opponents cast that target a Merfolk you control cost {2} more to cast.
|
// Spells your opponents cast that target a Merfolk you control cost {2} more to cast.
|
||||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new KopalaWardenOfWavesCostModificationEffect1()));
|
this.addAbility(new SimpleStaticAbility(new KopalaWardenOfWavesCostModificationEffect1()));
|
||||||
|
|
||||||
// Abilities your opponents activate that target a Merfolk you control cost {2} more to activate.
|
// Abilities your opponents activate that target a Merfolk you control cost {2} more to activate.
|
||||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new KopalaWardenOfWavesCostModificationEffect2()));
|
this.addAbility(new SimpleStaticAbility(new KopalaWardenOfWavesCostModificationEffect2()));
|
||||||
}
|
}
|
||||||
|
|
||||||
private KopalaWardenOfWaves(final KopalaWardenOfWaves card) {
|
private KopalaWardenOfWaves(final KopalaWardenOfWaves card) {
|
||||||
|
@ -102,11 +100,8 @@ class KopalaWardenOfWavesCostModificationEffect1 extends CostModificationEffectI
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean applies(Ability abilityToModify, Ability source, Game game) {
|
public boolean applies(Ability abilityToModify, Ability source, Game game) {
|
||||||
if (!(abilityToModify instanceof SpellAbility)) {
|
return abilityToModify.getAbilityType() == AbilityType.SPELL
|
||||||
return false;
|
&& KopalaWardenOfWaves.isAbilityCompatible(abilityToModify, source, game);
|
||||||
}
|
|
||||||
|
|
||||||
return KopalaWardenOfWaves.isAbilityCompatible(abilityToModify, source, game);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -135,11 +130,8 @@ class KopalaWardenOfWavesCostModificationEffect2 extends CostModificationEffectI
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean applies(Ability abilityToModify, Ability source, Game game) {
|
public boolean applies(Ability abilityToModify, Ability source, Game game) {
|
||||||
if (!(abilityToModify instanceof ActivatedAbility)) {
|
return abilityToModify.getAbilityType() == AbilityType.ACTIVATED
|
||||||
return false;
|
&& KopalaWardenOfWaves.isAbilityCompatible(abilityToModify, source, game);
|
||||||
}
|
|
||||||
|
|
||||||
return KopalaWardenOfWaves.isAbilityCompatible(abilityToModify, source, game);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue