mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38: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;
|
return bestSA;
|
||||||
} // playCounterSpell()
|
} // playCounterSpell()
|
||||||
|
|
||||||
public SpellAbility predictSpellToCastForMain2(ApiType exceptSA) {
|
public SpellAbility predictSpellToCastInMain2(ApiType exceptSA) {
|
||||||
final List<Card> cards = getAvailableCards();
|
final List<Card> cards = getAvailableCards();
|
||||||
|
|
||||||
ArrayList<SpellAbility> all = getSpellAbilities(cards);
|
ArrayList<SpellAbility> all = getSpellAbilities(cards);
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ public class PumpAi extends PumpAiBase {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected boolean canPlayAI(Player ai, SpellAbility sa) {
|
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) {
|
if (futureSpell != null && futureSpell.getHostCard() != null) {
|
||||||
((PlayerControllerAi)ai.getController()).getAi().reserveManaSourcesForMain2(futureSpell);
|
((PlayerControllerAi)ai.getController()).getAi().reserveManaSourcesForMain2(futureSpell);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user