- Fixed spReturnTgt and it will no longer give a null when using Urborg Uprising.

This commit is contained in:
jendave
2011-08-06 09:02:24 +00:00
parent 76e7518c0c
commit e646c1d4ce
2 changed files with 8 additions and 5 deletions

View File

@@ -3860,8 +3860,10 @@ public class CardFactory implements NewConstants {
if (returnUpTo[0]) {
for (int i = 0; i < numCardsToReturn; i++) {
if (!grave.isEmpty()) {
Card c = AllZone.Display.getChoiceOptional("Select a card", grave.toArray());
if (grave.size() > 0) {
Object o = AllZone.Display.getChoiceOptional("Select a card", grave.toArray());
if (o == null) break;
Card c = (Card) o;
targets.add(c);
grave.remove(c);
}
@@ -3869,7 +3871,8 @@ public class CardFactory implements NewConstants {
} else if (grave.size() > numCardsToReturn) {
for (int i = 0; i < numCardsToReturn; i++) {
Card c = AllZone.Display.getChoice("Select a card", grave.toArray());
Object o = AllZone.Display.getChoice("Select a card", grave.toArray());
Card c = (Card) o;
targets.add(c);
grave.remove(c);
}
@@ -3878,7 +3881,7 @@ public class CardFactory implements NewConstants {
targets = grave;
}
if (targets != null && !targets.isEmpty()) {
if (targets.size() > 0) {
spRtrnTgt.setTargetList(targets);
stopSetNext(new Input_PayManaCost(spRtrnTgt));
} else stop();