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:
@@ -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
|
||||||
|
|||||||
@@ -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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user