mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
- Fixes all but the Conflagrate issue in regards to FlashbackAbility. The CMC issue works with the Flashback cards as well. Conflagrate will require more testing to see what is going on.
This commit is contained in:
parent
c56975fa7e
commit
c968a03ff8
2 changed files with 8 additions and 4 deletions
|
|
@ -30,6 +30,7 @@ package mage.abilities.costs;
|
|||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
import mage.game.Game;
|
||||
import mage.game.stack.Spell;
|
||||
import mage.players.Player;
|
||||
import mage.target.Target;
|
||||
import mage.target.Targets;
|
||||
|
|
@ -165,7 +166,9 @@ public abstract class VariableCostImpl implements Cost, VariableCost {
|
|||
public int announceXValue(Ability source, Game game) {
|
||||
int xValue = 0;
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller != null) {
|
||||
Spell spell = game.getStack().getSpell(source.getId());
|
||||
if (controller != null
|
||||
&& spell != null) {
|
||||
xValue = controller.announceXCost(getMinValue(source, game), getMaxValue(source, game),
|
||||
"Announce the number of " + actionText, game, source, this);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue