mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
update spMakeToken to respect Doubling Season
This commit is contained in:
@@ -5734,8 +5734,15 @@ public class CardFactory implements NewConstants {
|
||||
|
||||
@Override
|
||||
public void resolve() {
|
||||
int num = xString ? CardFactoryUtil.xCount(card, numString) : Integer.valueOf(numString);
|
||||
String controller = (controllerString.equals("Controller") ? card.getController() : AllZone.GameAction.getOpponent(card.getController()));
|
||||
|
||||
int multiplier = 1;
|
||||
int doublingSeasons = AllZoneUtil.getPlayerCardsInPlay("Doubling Season", card.getController()).size();
|
||||
if(doublingSeasons > 0) multiplier = (int) Math.pow(2, doublingSeasons);
|
||||
|
||||
int num = xString ? CardFactoryUtil.xCount(card, numString) : Integer.valueOf(numString);
|
||||
num = num*multiplier;
|
||||
|
||||
for(int i = 0; i < num; i ++ ){
|
||||
if(keywords[0].equals("None")) keywords[0] = "";
|
||||
CardFactoryUtil.makeToken(name, imageName, controller, manaCost, types, attack, defense, keywords);
|
||||
|
||||
Reference in New Issue
Block a user