* Countersqall - Fixed that spell controller did not lose the 2 life (fixes #410).

This commit is contained in:
LevelX2 2014-04-13 09:36:01 +02:00
parent b829ad499e
commit c6f771f2b7
2 changed files with 6 additions and 2 deletions

View file

@ -28,11 +28,11 @@
package mage.sets.conflux;
import java.util.UUID;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.abilities.effects.common.CounterTargetEffect;
import mage.abilities.effects.common.LoseLifeTargetControllerEffect;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.filter.FilterSpell;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.CardTypePredicate;

View file

@ -31,6 +31,7 @@ import mage.constants.Outcome;
import mage.constants.Zone;
import mage.MageObject;
import mage.abilities.Ability;
import mage.abilities.SpellAbility;
import mage.abilities.effects.OneShotEffect;
import mage.cards.Card;
import mage.game.Game;
@ -70,6 +71,9 @@ public class LoseLifeTargetControllerEffect extends OneShotEffect<LoseLifeTarget
MageObject obj = game.getObject(targetPointer.getFirst(game, source));
if ( obj instanceof Card ) {
targetCard = (Card)obj;
} else {
// if target is a countered spell
targetCard = game.getLastKnownInformation(targetPointer.getFirst(game, source), Zone.STACK);
}
}