Skip to content

Commit

Permalink
[NCC] Agent's Toolkit - fixed game error on ability usage without cou…
Browse files Browse the repository at this point in the history
…nters
  • Loading branch information
JayDi85 committed Oct 21, 2023
1 parent c148e2f commit c1ba45b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Mage.Sets/src/mage/cards/a/AgentsToolkit.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,12 @@ public boolean apply(Game game, Ability source) {
}
Permanent enteringCreature = (Permanent) enteringObject;

Choice moveCounterChoice = new ChoiceImpl(false);
Set<String> possibleCounterNames = new LinkedHashSet<>(agentsToolkitPermanent.getCounters(game).keySet());
if (possibleCounterNames.isEmpty()) {
return false;
}

Choice moveCounterChoice = new ChoiceImpl(false);
moveCounterChoice.setMessage("Choose counter to move");
moveCounterChoice.setChoices(possibleCounterNames);

Expand Down

0 comments on commit c1ba45b

Please sign in to comment.