- Renamed a method to be more self-explanatory.

This commit is contained in:
Agetian
2014-09-05 04:27:03 +00:00
parent e2b8c5156d
commit aa6c0e9208
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);
}