mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Fixed Coat of Arms, it now counts creatures, not creature types and also considers Changeling creatures
This commit is contained in:
@@ -10179,18 +10179,23 @@ public class GameActionUtil {
|
|||||||
return !card.equals(crd) && card.isCreature() && !crd.getName().equals("Mana Pool");
|
return !card.equals(crd) && card.isCreature() && !crd.getName().equals("Mana Pool");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
CardList Already_Added = new CardList();
|
||||||
for(int x = 0; x < Type.size(); x++) {
|
for(int x = 0; x < Type.size(); x++) {
|
||||||
|
Already_Added.clear();
|
||||||
for(int x2 = 0; x2 < Type.get(x).getType().size(); x2++) {
|
for(int x2 = 0; x2 < Type.get(x).getType().size(); x2++) {
|
||||||
if(crd.getType().contains(Type.get(x).getType().get(x2))) {
|
if(!Already_Added.contains(Type.get(x))) {
|
||||||
if(Type.get(x).getType().get(x2).equals("Creature") || Type.get(x).getType().get(x2).equals("Legendary")
|
if(!Type.get(x).getType().get(x2).equals("Creature") && !Type.get(x).getType().get(x2).equals("Legendary")
|
||||||
|| Type.get(x).getType().get(x2).equals("Artifact") ) {
|
&& !Type.get(x).getType().get(x2).equals("Artifact") ) {
|
||||||
} else {
|
if(crd.getType().contains(Type.get(x).getType().get(x2)) || crd.getKeyword().contains("Changeling")
|
||||||
|
|| Type.get(x).getKeyword().contains("Changeling")) {
|
||||||
|
Already_Added.add(Type.get(x));
|
||||||
crd.addSemiPermanentAttackBoost(1);
|
crd.addSemiPermanentAttackBoost(1);
|
||||||
crd.addSemiPermanentDefenseBoost(1);
|
crd.addSemiPermanentDefenseBoost(1);
|
||||||
gloriousAnthemList.add(crd);
|
gloriousAnthemList.add(crd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}// for inner
|
}// for inner
|
||||||
}// for outer
|
}// for outer
|
||||||
|
|||||||
Reference in New Issue
Block a user