* Monohybrid mana cost improves:

* fixed wrong manually pay by mana pool (it pays generic cost instead colored part of monohybrid);
 * fixed not working cost reduction effects (now monohybrid cost will be reduced correctly with some limitation, see #6130);
This commit is contained in:
Oleg Agafonov 2020-02-11 22:29:07 +04:00
parent 13ad86cb21
commit b5acf64772
9 changed files with 589 additions and 78 deletions

View file

@ -1389,10 +1389,12 @@ public class ComputerPlayer extends PlayerImpl implements Player {
public boolean playMana(Ability ability, ManaCost unpaid, String promptText, Game game) {
payManaMode = true;
currentUnpaidMana = unpaid;
boolean result = playManaHandling(ability, unpaid, game);
currentUnpaidMana = null;
payManaMode = false;
return result;
try {
return playManaHandling(ability, unpaid, game);
} finally {
currentUnpaidMana = null;
payManaMode = false;
}
}
protected boolean playManaHandling(Ability ability, ManaCost unpaid, final Game game) {