Lazotep Convert fix (#10578)

* Fix Lazotep Convert card (add color, need to actually apply the applier)

* Don't copy Transformed status, add test
This commit is contained in:
ssk97 2023-07-06 22:26:27 -07:00 committed by GitHub
parent 063429b70a
commit e1edec542c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 59 additions and 4 deletions

View file

@ -136,8 +136,14 @@ public class CopyEffect extends ContinuousEffectImpl {
permanent.setStartingDefense(copyFromObject.getStartingDefense());
if (copyFromObject instanceof Permanent) {
Permanent targetPermanent = (Permanent) copyFromObject;
permanent.setTransformed(targetPermanent.isTransformed());
permanent.setSecondCardFace(targetPermanent.getSecondCardFace());
//707.2. When copying an object, the copy acquires the copiable values of the original objects characteristics [..]
//110.5. A permanent's status is its physical state. There are four status categories, each of which has two possible values:
// tapped/untapped, flipped/unflipped, face up/face down, and phased in/phased out.
// Each permanent always has one of these values for each of these categories.
//110.5a Status is not a characteristic, though it may affect a permanents characteristics.
//Being transformed is not a copiable characteristic, nor is the back side of a DFC
//permanent.setTransformed(targetPermanent.isTransformed());
//permanent.setSecondCardFace(targetPermanent.getSecondCardFace());
permanent.setFlipCard(targetPermanent.isFlipCard());
permanent.setFlipCardName(targetPermanent.getFlipCardName());
}