mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
[NCC] Agent's Toolkit - fixed game error on ability usage without counters
This commit is contained in:
parent
c148e2f5d7
commit
c1ba45b4bb
1 changed files with 5 additions and 1 deletions
|
|
@ -84,8 +84,12 @@ class AgentToolkitMoveCounterEffect extends OneShotEffect {
|
|||
}
|
||||
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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue