mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Fixed CountersPutAi NPEing on divided counter allocation (e.g. Ajani, Mentor of Heroes +1)
This commit is contained in:
@@ -306,11 +306,11 @@ public class CountersPutAi extends SpellAbilityAi {
|
||||
|
||||
list.remove(choice);
|
||||
sa.getTargets().add(choice);
|
||||
choice = null;
|
||||
if (divided) {
|
||||
abTgt.addDividedAllocation(choice, amount);
|
||||
break;
|
||||
}
|
||||
choice = null;
|
||||
}
|
||||
if (sa.getTargets().isEmpty()) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user