mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Adding RememberChanged in ChangeZoneHidden for Jeff
This commit is contained in:
@@ -531,6 +531,8 @@ public class AbilityFactory_ChangeZone {
|
|||||||
|
|
||||||
int changeNum = params.containsKey("ChangeNum") ? AbilityFactory.calculateAmount(card, params.get("ChangeNum"), sa) : 1;
|
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++) {
|
for (int i=0; i < changeNum; i++) {
|
||||||
if (fetchList.size() == 0 || destination == null)
|
if (fetchList.size() == 0 || destination == null)
|
||||||
break;
|
break;
|
||||||
@@ -544,6 +546,8 @@ public class AbilityFactory_ChangeZone {
|
|||||||
if (o != null) {
|
if (o != null) {
|
||||||
Card c = (Card) o;
|
Card c = (Card) o;
|
||||||
fetchList.remove(c);
|
fetchList.remove(c);
|
||||||
|
if (remember != null)
|
||||||
|
card.addRemembered(c);
|
||||||
|
|
||||||
if (destination.equals("Library")) {
|
if (destination.equals("Library")) {
|
||||||
// do not shuffle the library once we have placed a fetched card on top.
|
// 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;
|
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++){
|
for(int i=0;i<changeNum;i++){
|
||||||
if(fetchList.size() == 0 || destination == null)
|
if(fetchList.size() == 0 || destination == null)
|
||||||
break;
|
break;
|
||||||
@@ -640,7 +646,8 @@ public class AbilityFactory_ChangeZone {
|
|||||||
c = fetchList.get(0);
|
c = fetchList.get(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (remember != null)
|
||||||
|
card.addRemembered(c);
|
||||||
fetched.add(c);
|
fetched.add(c);
|
||||||
fetchList.remove(c);
|
fetchList.remove(c);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user