Fix bug that when AI cast divide damage as you choose spells, human can't change targetcorrectly

This commit is contained in:
Lyu Zong-Hong
2021-04-09 15:12:13 +09:00
parent 7603943c38
commit 9435701d10

View File

@@ -1130,7 +1130,7 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
} }
final TargetChoices oldTarget = sa.getTargets(); final TargetChoices oldTarget = sa.getTargets();
final TargetSelection select = new TargetSelection(this, sa); final TargetSelection select = new TargetSelection(this, sa);
sa.resetTargets(); sa.clearTargets();
if (select.chooseTargets(oldTarget.size(), Lists.newArrayList(oldTarget.getDividedValues()), filter, optional)) { if (select.chooseTargets(oldTarget.size(), Lists.newArrayList(oldTarget.getDividedValues()), filter, optional)) {
return sa.getTargets(); return sa.getTargets();
} else { } else {