mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Changed Helix Pinnacle AI calculation to consider doubling seasons in hand.
This commit is contained in:
@@ -16959,7 +16959,9 @@ public class CardFactory implements NewConstants {
|
|||||||
int n = Math.max(1, Math.min((int)Math.ceil((100-getSourceCard().getCounters(Counters.TOWER))/m),
|
int n = Math.max(1, Math.min((int)Math.ceil((100-getSourceCard().getCounters(Counters.TOWER))/m),
|
||||||
ComputerUtil.getAvailableMana().size())) ;
|
ComputerUtil.getAvailableMana().size())) ;
|
||||||
setManaCost(n + "");
|
setManaCost(n + "");
|
||||||
return m*n <=20;
|
return !(new CardList(AllZone.Computer_Hand.getCards()).containsName("Doubling Season") && n>=5 )
|
||||||
|
&& m*n >= Math.min(20, 100 - getSourceCard().getCounters(Counters.TOWER));
|
||||||
|
//Persuming if AI cast the Pinnacle, it has green mana
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
ability.setBeforePayMana(new Input()
|
ability.setBeforePayMana(new Input()
|
||||||
|
|||||||
Reference in New Issue
Block a user