- Basic AI for AF Learn

- Some minor tweaks and fixes for AF Learn
This commit is contained in:
Hans Mackowiak
2021-04-07 05:11:55 +00:00
committed by Michael Kamensky
parent 5b77205b77
commit 0627d37f69
36 changed files with 382 additions and 17 deletions

View File

@@ -476,8 +476,9 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
final boolean useUiPointAtCard =
(FModel.getPreferences().getPrefBoolean(FPref.UI_SELECT_FROM_CARD_DISPLAYS) && (!GuiBase.getInterface().isLibgdxPort())) ?
(cz.is(ZoneType.Battlefield) || cz.is(ZoneType.Hand) || cz.is(ZoneType.Library) ||
cz.is(ZoneType.Graveyard) || cz.is(ZoneType.Exile) || cz.is(ZoneType.Flashback) || cz.is(ZoneType.Command)) :
(cz.is(ZoneType.Hand) && cz.getPlayer() == player || cz.is(ZoneType.Battlefield));
cz.is(ZoneType.Graveyard) || cz.is(ZoneType.Exile) || cz.is(ZoneType.Flashback) ||
cz.is(ZoneType.Command) || cz.is(ZoneType.Sideboard)) :
(cz.is(ZoneType.Hand, player) || cz.is(ZoneType.Battlefield));
if (!useUiPointAtCard) {
return false;
}