- AF ChangeZone Hidden is a little more flexible now.

- Added Entrails Feaster by Jeff.
This commit is contained in:
Sloth
2012-02-09 18:48:36 +00:00
parent e3e393a139
commit 0b1a0b7007
3 changed files with 28 additions and 4 deletions

View File

@@ -819,6 +819,8 @@ public final class AbilityFactoryChangeZone {
CardList fetchList;
if (defined) {
fetchList = new CardList(AbilityFactory.getDefinedCards(card, params.get("Defined"), sa));
} else if (!origin.contains(Zone.Library) && !origin.contains(Zone.Hand)){
fetchList = AllZoneUtil.getCardsIn(origin);
} else {
fetchList = player.getCardsIn(origin);
}
@@ -912,11 +914,13 @@ public final class AbilityFactoryChangeZone {
}
movedCard = AllZone.getGameAction().moveTo(c.getController().getZone(destination), c);
} else {
movedCard = AllZone.getGameAction().moveTo(destZone, c);
} else if(destination.equals(Zone.Exile)) {
movedCard = AllZone.getGameAction().exile(c);
if (params.containsKey("ExileFaceDown")) {
movedCard.setState("FaceDown");
}
} else {
movedCard = AllZone.getGameAction().moveTo(destZone, c);
}
if (remember != null) {
@@ -984,6 +988,9 @@ public final class AbilityFactoryChangeZone {
CardList fetchList;
if (defined) {
fetchList = new CardList(AbilityFactory.getDefinedCards(card, params.get("Defined"), sa));
} else if (!origin.contains(Zone.Library) && !origin.contains(Zone.Hand)){
fetchList = AllZoneUtil.getCardsIn(origin);
fetchList = AbilityFactory.filterListByType(fetchList, type, sa);
} else {
fetchList = player.getCardsIn(origin);
fetchList = AbilityFactory.filterListByType(fetchList, type, sa);
@@ -1095,11 +1102,13 @@ public final class AbilityFactoryChangeZone {
}
newCard = AllZone.getGameAction().moveTo(c.getController().getZone(destination), c);
} else {
newCard = AllZone.getGameAction().moveTo(destZone, c);
} else if(destination.equals(Zone.Exile)) {
newCard = AllZone.getGameAction().exile(c);
if (params.containsKey("ExileFaceDown")) {
newCard.setState("FaceDown");
}
} else {
newCard = AllZone.getGameAction().moveTo(destZone, c);
}
if (remember != null) {