[KHM] fixed Frostpyre Arcanist being used incorrectly by AI (#7488)

This commit is contained in:
Evan Kranzler 2021-02-04 10:50:10 -05:00
parent 3727e2ea42
commit bc99de1a48
3 changed files with 60 additions and 10 deletions

View file

@ -1816,7 +1816,8 @@ public class ComputerPlayer extends PlayerImpl implements Player {
abilityControllerId = target.getAbilityController();
}
List<Card> cardChoices = new ArrayList<>(cards.getCards(target.getFilter(), game));
// we still use playerId when getting cards even if they don't control the search
List<Card> cardChoices = new ArrayList<>(cards.getCards(target.getFilter(), source != null ? source.getSourceId() : null, playerId, game));
while (!target.doneChosing()) {
Card card = pickTarget(abilityControllerId, cardChoices, outcome, target, source, game);
if (card != null) {