mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 04:39:18 -08:00
* Endrek Sahr, Master Breeder - Fixed Thrull creating ability that did not work when the triggering spell was countered.
This commit is contained in:
parent
e82ee26136
commit
28d816b21f
2 changed files with 76 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue