mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +00:00
Fixed playXMana (no X=0, put everything to X). updated first scenario.
This commit is contained in:
parent
9bd5e95bda
commit
3a11c59486
2 changed files with 10 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
### ComputerA ###
|
||||
# Battlefield
|
||||
battlefield:ComputerA:Island:1
|
||||
battlefield:ComputerA:Mountain:1
|
||||
#battlefield:ComputerA:Goblin Guide:1
|
||||
# Hand
|
||||
hand:ComputerA:Mountain:2
|
||||
hand:ComputerA:Hellspark Elemental:5
|
||||
hand:ComputerA:Lightning Bolt:5
|
||||
# Library
|
||||
# from down to top
|
||||
library:ComputerA:clear:0
|
||||
library:ComputerA:Hellspark Elemental:10
|
||||
library:ComputerA:Lightning Bolt:10
|
||||
|
||||
### ComputerB ###
|
||||
# Battlefield
|
||||
|
|
Loading…
Reference in a new issue