* Fixed a problem that a gained "is all creature types" from continous effects were not propertly reset on permanents.

This commit is contained in:
LevelX2 2018-03-20 13:39:48 +01:00
parent 3ced3fde11
commit 48cfe249f7
4 changed files with 3 additions and 11 deletions

View file

@ -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<>();

View file

@ -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;

View file

@ -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();

View file

@ -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();
}