mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 19:59:54 -08:00
* 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:
parent
d28a956754
commit
b3fdc167a8
4 changed files with 159 additions and 17 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue