* Endrek Sahr, Master Breeder - Fixed Thrull creating ability that did not work when the triggering spell was countered.

This commit is contained in:
LevelX2 2015-05-23 18:59:41 +02:00
parent e82ee26136
commit 28d816b21f
2 changed files with 76 additions and 0 deletions

View file

@ -48,6 +48,7 @@ import mage.game.Game;
import mage.game.events.GameEvent;
import mage.game.permanent.token.Token;
import mage.game.stack.Spell;
import mage.target.targetpointer.FixedTarget;
/**
*
@ -136,6 +137,9 @@ class EndrekSahrMasterBreederEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
Spell spell = game.getStack().getSpell(targetPointer.getFirst(game, source));
if (spell == null) {
spell = (Spell) game.getLastKnownInformation(((FixedTarget)getTargetPointer()).getTarget(), Zone.STACK);
}
if (spell != null) {
int cmc = spell.getConvertedManaCost();
if (cmc > 0) {