- Fixed CountersPutAi NPEing on divided counter allocation (e.g. Ajani, Mentor of Heroes +1)

This commit is contained in:
Agetian
2016-12-15 06:16:55 +00:00
parent b8f7ea55f4
commit fbf3845ca6

View File

@@ -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;