mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- Fixed Changelings.
This commit is contained in:
@@ -199,7 +199,7 @@ public final class CardType implements Comparable<CardType>, CardTypeView {
|
|||||||
if (t.isEmpty()) {
|
if (t.isEmpty()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (subtypes.contains(t)) {
|
if (hasSubtype(t)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
char firstChar = t.charAt(0);
|
char firstChar = t.charAt(0);
|
||||||
@@ -223,6 +223,9 @@ public final class CardType implements Comparable<CardType>, CardTypeView {
|
|||||||
return supertypes.contains(supertype);
|
return supertypes.contains(supertype);
|
||||||
}
|
}
|
||||||
public boolean hasSubtype(String subtype) {
|
public boolean hasSubtype(String subtype) {
|
||||||
|
if (forge.card.CardType.isACreatureType(subtype) && subtypes.contains("AllCreatureTypes")) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return subtypes.contains(subtype);
|
return subtypes.contains(subtype);
|
||||||
}
|
}
|
||||||
public boolean hasCreatureType(String creatureType) {
|
public boolean hasCreatureType(String creatureType) {
|
||||||
|
|||||||
Reference in New Issue
Block a user