mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 22:12:03 -08:00
[CMR] fixed Akroma's Will - missing copy of new condition in modes (#7210);
Improved compatibility of new modes condition with choose dialogs and test framework;
This commit is contained in:
parent
64821a50d3
commit
2b78388eab
5 changed files with 131 additions and 32 deletions
|
|
@ -1924,7 +1924,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
|||
@Override
|
||||
public Mode chooseMode(Modes modes, Ability source, Game game) {
|
||||
log.debug("chooseMode");
|
||||
if (modes.getMode() != null && modes.getMaxModes() == modes.getSelectedModes().size()) {
|
||||
if (modes.getMode() != null && modes.getMaxModes(game, source) == modes.getSelectedModes().size()) {
|
||||
// mode was already set by the AI
|
||||
return modes.getMode();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue