GUI: added card hints in choose replacement effect dialog

This commit is contained in:
Oleg Agafonov 2024-07-19 00:05:57 +04:00
parent 67ff2da060
commit 7b2e9b390c
7 changed files with 50 additions and 26 deletions

View file

@ -1,5 +1,6 @@
package mage.player.ai;
import mage.MageObject;
import mage.abilities.*;
import mage.abilities.common.PassAbility;
import mage.abilities.costs.mana.GenericManaCost;
@ -341,11 +342,11 @@ public final class SimulatedPlayerMCTS extends MCTSPlayer {
}
@Override
public int chooseReplacementEffect(Map<String, String> rEffects, Game game) {
public int chooseReplacementEffect(Map<String, String> effectsMap, Map<String, MageObject> objectsMap, Game game) {
if (this.isHuman()) {
return RandomUtil.nextInt(rEffects.size());
return RandomUtil.nextInt(effectsMap.size());
}
return super.chooseReplacementEffect(rEffects, game);
return super.chooseReplacementEffect(effectsMap, objectsMap, game);
}
@Override