mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
* Fixed a problem that a gained "is all creature types" from continous effects were not propertly reset on permanents.
This commit is contained in:
parent
3ced3fde11
commit
48cfe249f7
4 changed files with 3 additions and 11 deletions
|
@ -105,6 +105,7 @@ public abstract class MageObjectImpl implements MageObject {
|
|||
abilities = object.abilities.copy();
|
||||
this.cardType.addAll(object.cardType);
|
||||
this.subtype.addAll(object.subtype);
|
||||
isAllCreatureTypes = object.isAllCreatureTypes;
|
||||
supertype.addAll(object.supertype);
|
||||
this.copy = object.copy;
|
||||
textParts = new ArrayList<>();
|
||||
|
|
|
@ -89,7 +89,6 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
|
|||
protected boolean usesVariousArt = false;
|
||||
protected boolean splitCard;
|
||||
protected boolean morphCard;
|
||||
protected boolean allCreatureTypes;
|
||||
|
||||
protected List<UUID> attachments = new ArrayList<>();
|
||||
|
||||
|
@ -857,16 +856,6 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
|
|||
return super.getSubtype(game);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAllCreatureTypes() {
|
||||
return allCreatureTypes;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setIsAllCreatureTypes(boolean value) {
|
||||
allCreatureTypes = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UUID> getAttachments() {
|
||||
return attachments;
|
||||
|
|
|
@ -124,6 +124,7 @@ public class PermanentCard extends PermanentImpl {
|
|||
}
|
||||
this.subtype.clear();
|
||||
this.subtype.addAll(card.getSubtype(game));
|
||||
this.isAllCreatureTypes = card.isAllCreatureTypes();
|
||||
this.supertype.clear();
|
||||
supertype.addAll(card.getSuperType());
|
||||
this.expansionSetCode = card.getExpansionSetCode();
|
||||
|
|
|
@ -92,6 +92,7 @@ public class PermanentToken extends PermanentImpl {
|
|||
this.supertype.addAll(token.getSuperType());
|
||||
this.subtype.clear();
|
||||
this.subtype.addAll(token.getSubtype(game));
|
||||
this.isAllCreatureTypes = token.isAllCreatureTypes();
|
||||
this.tokenDescriptor = token.getTokenDescriptor();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue