mirror of
https://github.com/correl/mage.git
synced 2024-11-16 03:00:12 +00:00
* Countersqall - Fixed that spell controller did not lose the 2 life (fixes #410).
This commit is contained in:
parent
b829ad499e
commit
c6f771f2b7
2 changed files with 6 additions and 2 deletions
|
@ -28,11 +28,11 @@
|
||||||
package mage.sets.conflux;
|
package mage.sets.conflux;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import mage.constants.CardType;
|
|
||||||
import mage.constants.Rarity;
|
|
||||||
import mage.abilities.effects.common.CounterTargetEffect;
|
import mage.abilities.effects.common.CounterTargetEffect;
|
||||||
import mage.abilities.effects.common.LoseLifeTargetControllerEffect;
|
import mage.abilities.effects.common.LoseLifeTargetControllerEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.Rarity;
|
||||||
import mage.filter.FilterSpell;
|
import mage.filter.FilterSpell;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.CardTypePredicate;
|
import mage.filter.predicate.mageobject.CardTypePredicate;
|
||||||
|
|
|
@ -31,6 +31,7 @@ import mage.constants.Outcome;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.MageObject;
|
import mage.MageObject;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
|
import mage.abilities.SpellAbility;
|
||||||
import mage.abilities.effects.OneShotEffect;
|
import mage.abilities.effects.OneShotEffect;
|
||||||
import mage.cards.Card;
|
import mage.cards.Card;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
|
@ -70,6 +71,9 @@ public class LoseLifeTargetControllerEffect extends OneShotEffect<LoseLifeTarget
|
||||||
MageObject obj = game.getObject(targetPointer.getFirst(game, source));
|
MageObject obj = game.getObject(targetPointer.getFirst(game, source));
|
||||||
if ( obj instanceof Card ) {
|
if ( obj instanceof Card ) {
|
||||||
targetCard = (Card)obj;
|
targetCard = (Card)obj;
|
||||||
|
} else {
|
||||||
|
// if target is a countered spell
|
||||||
|
targetCard = game.getLastKnownInformation(targetPointer.getFirst(game, source), Zone.STACK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue