- Fixed optional triggers declined by the AI not being removed from the stack.

This commit is contained in:
Sloth
2013-06-14 11:18:11 +00:00
parent 7ee57a381a
commit a0f4ac195d
2 changed files with 5 additions and 0 deletions

View File

@@ -411,6 +411,10 @@ public class WrappedAbility extends Ability implements ISpellAbility {
// There is no way this doTrigger here will have the same target as stored above
// So it's possible it's making a different decision here than will actually happen
if (!sa.doTrigger(this.isMandatory(), decider)) {
if (storeChoices) {
tgt.resetTargets();
tgt.setTargetChoices(tc);
}
return false;
}
if (storeChoices) {