mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 14:02:05 -08: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
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue