Added Mirror Gallery.

This commit is contained in:
jendave
2011-08-06 05:37:19 +00:00
parent 464034b950
commit 35fdd20765
2 changed files with 12 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
Mirror Gallery
5
Artifact
The "legend rule" doesn't apply.
Symbiotic Beast Symbiotic Beast
4 G G 4 G G
Creature Beast Creature Beast

View File

@@ -639,8 +639,14 @@ public class GameAction {
private void destroyLegendaryCreatures() { private void destroyLegendaryCreatures() {
ArrayList<Card> a = PlayerZoneUtil.getCardType(AllZone.Human_Play, "Legendary"); ArrayList<Card> a = PlayerZoneUtil.getCardType(AllZone.Human_Play, "Legendary");
a.addAll(PlayerZoneUtil.getCardType(AllZone.Computer_Play, "Legendary")); a.addAll(PlayerZoneUtil.getCardType(AllZone.Computer_Play, "Legendary"));
CardList Mirror_Gallery = new CardList(); // Mirror Gallery suppresses the Legend rule
Mirror_Gallery.addAll(AllZone.Human_Play.getCards());
Mirror_Gallery.addAll(AllZone.Computer_Play.getCards());
Mirror_Gallery = Mirror_Gallery.getName("Mirror Gallery");
while(!a.isEmpty()) { while(!a.isEmpty() && Mirror_Gallery.isEmpty()) {
ArrayList<Card> b = getCardsNamed(a, (a.get(0)).getName()); ArrayList<Card> b = getCardsNamed(a, (a.get(0)).getName());
a.remove(0); a.remove(0);
if(1 < b.size()) { if(1 < b.size()) {