Fix: Coat of Arms should now filter creature types properly

This commit is contained in:
moomarc
2012-07-10 13:57:45 +00:00
parent ffa57af60f
commit 8c2a3cd5b6

View File

@@ -1418,9 +1418,7 @@ public final class GameActionUtil {
alreadyAdded.clear(); alreadyAdded.clear();
for (int x2 = 0; x2 < type.get(x).getType().size(); x2++) { for (int x2 = 0; x2 < type.get(x).getType().size(); x2++) {
if (!alreadyAdded.contains(type.get(x))) { if (!alreadyAdded.contains(type.get(x))) {
if (!type.get(x).getType().get(x2).equals("Creature") if (CardUtil.isACreatureType(type.get(x).getType().get(x2))) {
&& !type.get(x).getType().get(x2).equals("Legendary")
&& !type.get(x).getType().get(x2).equals("Artifact")) {
if (crd.isType(type.get(x).getType().get(x2))) { if (crd.isType(type.get(x).getType().get(x2))) {
alreadyAdded.add(type.get(x)); alreadyAdded.add(type.get(x));
crd.addSemiPermanentAttackBoost(1); crd.addSemiPermanentAttackBoost(1);