* Fixed a bug if casting split cards from other players e.g with Mindclaw Shaman (fixes #3867).

This commit is contained in:
LevelX2 2017-08-30 00:30:46 +02:00
parent ff22a75f34
commit cba7a510ea
5 changed files with 177 additions and 19 deletions

View file

@ -1514,7 +1514,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
if (object != null) {
LinkedHashMap<UUID, ActivatedAbility> useableAbilities = getSpellAbilities(object, game.getState().getZone(object.getId()), game);
if (useableAbilities != null && !useableAbilities.isEmpty()) {
game.fireGetChoiceEvent(playerId, name, object, new ArrayList<>(useableAbilities.values()));
// game.fireGetChoiceEvent(playerId, name, object, new ArrayList<>(useableAbilities.values()));
// TODO: Improve this
return (SpellAbility) useableAbilities.values().iterator().next();
}