mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +00:00
fixed Dovescape not using LKI for countered spells
This commit is contained in:
parent
b516dbca46
commit
63df22d1b1
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,7 @@ import mage.cards.CardSetInfo;
|
|||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.SetTargetPointer;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.CardTypePredicate;
|
||||
|
@ -94,6 +95,9 @@ class DovescapeEffect extends OneShotEffect {
|
|||
Spell spell = game.getStack().getSpell(this.getTargetPointer().getFirst(game, source));
|
||||
int spellCMC = 0;
|
||||
UUID spellControllerID = null;
|
||||
if (spell == null) {
|
||||
spell = (Spell) game.getLastKnownInformation(this.getTargetPointer().getFirst(game, source), Zone.STACK);
|
||||
}
|
||||
if (spell != null) {
|
||||
spellCMC = spell.getConvertedManaCost();
|
||||
spellControllerID = spell.getControllerId();
|
||||
|
|
Loading…
Reference in a new issue