* Reworked some parts of transform handling. Fixes #2396.

This commit is contained in:
LevelX2 2016-09-28 17:02:37 +02:00
parent e57da7598e
commit 86648c7190
157 changed files with 246 additions and 204 deletions

View file

@ -71,7 +71,7 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
protected String tokenSetCode;
protected String tokenDescriptor;
protected Rarity rarity;
protected boolean canTransform;
protected boolean transformable;
protected Card secondSideCard;
protected boolean nightCard;
protected SpellAbility spellAbility;
@ -139,8 +139,8 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
tokenDescriptor = card.tokenDescriptor;
rarity = card.rarity;
canTransform = card.canTransform;
if (canTransform) {
transformable = card.transformable;
if (transformable) {
secondSideCard = card.secondSideCard;
nightCard = card.nightCard;
}
@ -532,8 +532,13 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
}
@Override
public boolean canTransform() {
return this.canTransform;
public boolean isTransformable() {
return this.transformable;
}
@Override
public void setTransformable(boolean transformable) {
this.transformable = transformable;
}
@Override