mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28: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);
|
list.remove(choice);
|
||||||
sa.getTargets().add(choice);
|
sa.getTargets().add(choice);
|
||||||
choice = null;
|
|
||||||
if (divided) {
|
if (divided) {
|
||||||
abTgt.addDividedAllocation(choice, amount);
|
abTgt.addDividedAllocation(choice, amount);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
choice = null;
|
||||||
}
|
}
|
||||||
if (sa.getTargets().isEmpty()) {
|
if (sa.getTargets().isEmpty()) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user