mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Added Mirror Gallery.
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user