* The Mimeoplasm - Fixed that if a Mimeoplasm was copied (e.g. by Clone) that not the target copied by Mimeoplasm was copied but instead the Mimeoplasm itself.

This commit is contained in:
LevelX2 2015-06-13 09:35:37 +02:00
parent d28a956754
commit b3fdc167a8
4 changed files with 159 additions and 17 deletions

View file

@ -67,7 +67,7 @@ public class CopyEffect extends ContinuousEffectImpl {
public CopyEffect(Duration duration, MageObject target, UUID sourceId) {
super(duration, Layer.CopyEffects_1, SubLayer.NA, Outcome.BecomeCreature);
this.target = target;
this.target = target;
this.sourceId = sourceId;
}
@ -81,6 +81,9 @@ public class CopyEffect extends ContinuousEffectImpl {
@Override
public void init(Ability source, Game game) {
super.init(source, game);
if (!(target instanceof Permanent) && (target instanceof Card)) {
this.target = new PermanentCard((Card)target, source.getControllerId(), game);
}
affectedObjectList.add(new MageObjectReference(getSourceId(), game));
}