mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Fixed changeling detection for secondary and non-Type restrictions in isValidCard.
This commit is contained in:
@@ -2207,9 +2207,9 @@ public class Card extends MyObservable {
|
|||||||
else if(exR[j].startsWith("named")) //by name
|
else if(exR[j].startsWith("named")) //by name
|
||||||
r = r && (getName().equals(exR[j].substring(6)));
|
r = r && (getName().equals(exR[j].substring(6)));
|
||||||
else if(exR[j].startsWith("non")) // ... Other Card types
|
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
|
else
|
||||||
r = r && (getType().contains(exR[j]));
|
r = r && (isType(exR[j]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (r == true) return true;
|
if (r == true) return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user