mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
if replaced coretype provides its subtype old isn't retained
This commit is contained in:
@@ -798,7 +798,7 @@ public class CardFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (sa.hasParam("RemoveCardTypes")) {
|
if (sa.hasParam("RemoveCardTypes")) {
|
||||||
state.removeCardTypes();
|
state.removeCardTypes(sa.hasParam("RemoveSubTypes"));
|
||||||
}
|
}
|
||||||
|
|
||||||
state.addType(types);
|
state.addType(types);
|
||||||
|
|||||||
@@ -155,8 +155,11 @@ public class CardState extends GameObject implements IHasSVars {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void removeCardTypes() {
|
public final void removeCardTypes(boolean sanisfy) {
|
||||||
type.removeCardTypes();
|
type.removeCardTypes();
|
||||||
|
if (sanisfy) {
|
||||||
|
type.sanisfySubtypes();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void setCreatureTypes(Collection<String> ctypes) {
|
public final void setCreatureTypes(Collection<String> ctypes) {
|
||||||
|
|||||||
Reference in New Issue
Block a user