mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
Replacing obsolete function
This commit is contained in:
parent
f5d79a8bdf
commit
32a230e25e
1 changed files with 3 additions and 2 deletions
|
|
@ -19,6 +19,7 @@ import mage.game.Game;
|
||||||
import mage.game.permanent.token.Token;
|
import mage.game.permanent.token.Token;
|
||||||
import mage.game.permanent.token.custom.CreatureToken;
|
import mage.game.permanent.token.custom.CreatureToken;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
|
import mage.util.CardUtil;
|
||||||
import mage.util.RandomUtil;
|
import mage.util.RandomUtil;
|
||||||
import mage.util.functions.CopyTokenFunction;
|
import mage.util.functions.CopyTokenFunction;
|
||||||
|
|
||||||
|
|
@ -72,8 +73,8 @@ class PoolOfVigorousGrowthEffect extends OneShotEffect {
|
||||||
if (player == null) {
|
if (player == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
int xValue = source.getManaCostsToPay().getX();
|
int xValue = CardUtil.getSourceCostsTag(game, source, "X", 0);
|
||||||
if (game.isSimulation()) {
|
if (game.isSimulation()) {
|
||||||
// Create dummy token to prevent multiple DB find cards what causes H2 java.lang.IllegalStateException if AI cancels calculation because of time out
|
// Create dummy token to prevent multiple DB find cards what causes H2 java.lang.IllegalStateException if AI cancels calculation because of time out
|
||||||
Token token = new CreatureToken(xValue, xValue + 1);
|
Token token = new CreatureToken(xValue, xValue + 1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue