mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
fixed Nivmagus Elemental being able to infinitely exile copied spells (fixes #4092)
This commit is contained in:
parent
bef2137443
commit
80f21132eb
2 changed files with 12 additions and 8 deletions
|
|
@ -65,7 +65,6 @@ public class NivmagusElemental extends CardImpl {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{U/R}");
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{U/R}");
|
||||||
this.subtype.add(SubType.ELEMENTAL);
|
this.subtype.add(SubType.ELEMENTAL);
|
||||||
|
|
||||||
|
|
||||||
this.power = new MageInt(1);
|
this.power = new MageInt(1);
|
||||||
this.toughness = new MageInt(2);
|
this.toughness = new MageInt(2);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,10 +61,15 @@ public class ExileFromStackCost extends CostImpl {
|
||||||
if (spellToExile == null) {
|
if (spellToExile == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
String spellName = spellToExile.getName();
|
||||||
|
if (spellToExile.isCopy()) {
|
||||||
|
game.getStack().remove(spellToExile);
|
||||||
|
} else {
|
||||||
spellToExile.moveToExile(null, "", ability.getSourceId(), game);
|
spellToExile.moveToExile(null, "", ability.getSourceId(), game);
|
||||||
|
}
|
||||||
paid = true;
|
paid = true;
|
||||||
if (!game.isSimulation()) {
|
if (!game.isSimulation()) {
|
||||||
game.informPlayers(player.getLogName() + " exiles " + spellToExile.getName() + " (as costs)");
|
game.informPlayers(player.getLogName() + " exiles " + spellName + " (as costs)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue