Fixed changeling detection for secondary and non-Type restrictions in isValidCard.

This commit is contained in:
jendave
2011-08-06 08:15:00 +00:00
parent c8e01d8e09
commit bf45c6750b

View File

@@ -2207,9 +2207,9 @@ public class Card extends MyObservable {
else if(exR[j].startsWith("named")) //by name
r = r && (getName().equals(exR[j].substring(6)));
else if(exR[j].startsWith("non")) // ... Other Card types
r = r && (!getType().contains(exR[j].substring(3)));
r = r && (!isType(exR[j].substring(3)));
else
r = r && (getType().contains(exR[j]));
r = r && (isType(exR[j]));
}
}
if (r == true) return true;