mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
If Emerge reduces mana cost to zero, pass noMana flag to allow spell to be cast with empty manaCostsToPay. (#12896)
Fixes #12841
This commit is contained in:
parent
360cde3c82
commit
291a28d1db
1 changed files with 2 additions and 1 deletions
|
|
@ -112,7 +112,8 @@ public class EmergeAbility extends SpellAbility {
|
|||
Permanent creature = game.getPermanent(target.getFirstTarget());
|
||||
if (creature != null) {
|
||||
CardUtil.reduceCost(this, creature.getManaValue());
|
||||
if (super.activate(game, allowedIdentifiers, false)) {
|
||||
boolean reducedToZero = this.getManaCostsToPay().isEmpty();
|
||||
if (super.activate(game, allowedIdentifiers, reducedToZero)) {
|
||||
MageObjectReference mor = new MageObjectReference(creature, game);
|
||||
if (creature.sacrifice(this, game)) {
|
||||
this.setCostsTag(EMERGE_ACTIVATION_CREATURE_REFERENCE, mor); //Can access with LKI afterwards
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue