* Fixed that testing framework does not support snow mana payment (fixes #3751).

This commit is contained in:
LevelX2 2017-07-28 12:47:00 +02:00
parent ffd0c24c9c
commit ea3d00a430
2 changed files with 16 additions and 9 deletions

View file

@ -1122,6 +1122,18 @@ public class ComputerPlayer extends PlayerImpl implements Player {
}
}
}
// pay snow covered mana
for (ActivatedManaAbilityImpl manaAbility : mageObject.getAbilities().getAvailableActivatedManaAbilities(Zone.BATTLEFIELD, game)) {
if (cost instanceof SnowManaCost) {
for (Mana netMana : manaAbility.getNetMana(game)) {
if (cost.testPay(netMana) || spendAnyMana) {
if (activateAbility(manaAbility, game)) {
return true;
}
}
}
}
}
// then pay hybrid
for (ActivatedManaAbilityImpl manaAbility : mageObject.getAbilities().getAvailableActivatedManaAbilities(Zone.BATTLEFIELD, game)) {
if (cost instanceof HybridManaCost) {