mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Warbringer - fixed that it doesn't allow to cast cards with Dash without full mana available (#6698);
This commit is contained in:
parent
49f4e54aaa
commit
d18093daf2
1 changed files with 2 additions and 4 deletions
|
@ -9,6 +9,7 @@ import mage.abilities.common.SimpleStaticAbility;
|
|||
import mage.abilities.condition.common.DashedCondition;
|
||||
import mage.abilities.effects.common.cost.CostModificationEffectImpl;
|
||||
import mage.abilities.keyword.DashAbility;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
|
@ -72,10 +73,7 @@ class WarbringerSpellsCostReductionEffect extends CostModificationEffectImpl {
|
|||
public boolean applies(Ability abilityToModify, Ability source, Game game) {
|
||||
if (abilityToModify instanceof SpellAbility) {
|
||||
if (abilityToModify.isControlledBy(source.getControllerId())) {
|
||||
Spell spell = (Spell) game.getStack().getStackObject(abilityToModify.getId());
|
||||
if (spell != null) {
|
||||
return DashedCondition.instance.apply(game, abilityToModify);
|
||||
}
|
||||
return DashedCondition.instance.apply(game, abilityToModify);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue