- 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

@@ -4,6 +4,7 @@ Types:Creature Nightstalker
PT:3/2
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.Self | Execute$ TrigSac | OptionalDecider$ You | TriggerDescription$ When CARDNAME enters the battlefield, you may have target opponent sacrifice a creature.
SVar:TrigSac:AB$Sacrifice | Cost$ 0 | ValidTgts$ Opponent | SacValid$ Creature
SVar:PlayMain1:TRUE
SVar:Picture:http://serv2.tcgimages.eu/img/cards/Portal_Second_Age/predatory_nightstalker.jpg
Oracle:When Predatory Nightstalker enters the battlefield, you may have target opponent sacrifice a creature.
SetInfo:PO2 Uncommon

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) {