Fixed playXMana (no X=0, put everything to X). updated first scenario.

This commit is contained in:
magenoxx 2011-02-23 10:50:42 +03:00
parent 9bd5e95bda
commit 3a11c59486
2 changed files with 10 additions and 5 deletions

View file

@ -666,10 +666,15 @@ public class ComputerPlayer<T extends ComputerPlayer<T>> extends PlayerImpl<T> i
//put everything into X
for (Permanent perm: this.getAvailableManaProducers(game)) {
for (ManaAbility ability: perm.getAbilities().getManaAbilities(Zone.BATTLEFIELD)) {
if (activateAbility(ability, game))
return true;
activateAbility(ability, game);
}
}
// don't allow X=0
if (getManaPool().count() == 0) {
return false;
}
cost.setPaid();
return true;
}