mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Renamed a method to be more self-explanatory.
This commit is contained in:
@@ -637,7 +637,7 @@ public class AiController {
|
||||
return bestSA;
|
||||
} // playCounterSpell()
|
||||
|
||||
public SpellAbility predictSpellToCastForMain2(ApiType exceptSA) {
|
||||
public SpellAbility predictSpellToCastInMain2(ApiType exceptSA) {
|
||||
final List<Card> cards = getAvailableCards();
|
||||
|
||||
ArrayList<SpellAbility> all = getSpellAbilities(cards);
|
||||
|
||||
@@ -49,7 +49,7 @@ public class PumpAi extends PumpAiBase {
|
||||
*/
|
||||
@Override
|
||||
protected boolean canPlayAI(Player ai, SpellAbility sa) {
|
||||
SpellAbility futureSpell = ((PlayerControllerAi)ai.getController()).getAi().predictSpellToCastForMain2(ApiType.Pump);
|
||||
SpellAbility futureSpell = ((PlayerControllerAi)ai.getController()).getAi().predictSpellToCastInMain2(ApiType.Pump);
|
||||
if (futureSpell != null && futureSpell.getHostCard() != null) {
|
||||
((PlayerControllerAi)ai.getController()).getAi().reserveManaSourcesForMain2(futureSpell);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user