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

@@ -639,8 +639,14 @@ public class GameAction {
private void destroyLegendaryCreatures() {
ArrayList<Card> a = PlayerZoneUtil.getCardType(AllZone.Human_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());
a.remove(0);
if(1 < b.size()) {