- Adding RememberChanged in ChangeZoneHidden for Jeff

This commit is contained in:
jendave
2011-08-07 01:06:45 +00:00
parent a169ffd4b9
commit 1d4fb9f9a3

View File

@@ -531,6 +531,8 @@ public class AbilityFactory_ChangeZone {
int changeNum = params.containsKey("ChangeNum") ? AbilityFactory.calculateAmount(card, params.get("ChangeNum"), sa) : 1;
String remember = params.get("RememberChanged");
for (int i=0; i < changeNum; i++) {
if (fetchList.size() == 0 || destination == null)
break;
@@ -544,6 +546,8 @@ public class AbilityFactory_ChangeZone {
if (o != null) {
Card c = (Card) o;
fetchList.remove(c);
if (remember != null)
card.addRemembered(c);
if (destination.equals("Library")) {
// do not shuffle the library once we have placed a fetched card on top.
@@ -610,6 +614,8 @@ public class AbilityFactory_ChangeZone {
int changeNum = params.containsKey("ChangeNum") ? AbilityFactory.calculateAmount(card, params.get("ChangeNum"), sa) : 1;
String remember = params.get("RememberChanged");
for(int i=0;i<changeNum;i++){
if(fetchList.size() == 0 || destination == null)
break;
@@ -640,7 +646,8 @@ public class AbilityFactory_ChangeZone {
c = fetchList.get(0);
}
if (remember != null)
card.addRemembered(c);
fetched.add(c);
fetchList.remove(c);
}