mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
Replaced by EmptyApplyToPermanent
This commit is contained in:
parent
21b8c8a354
commit
1f06ad6dce
1 changed files with 2 additions and 8 deletions
|
@ -27,7 +27,6 @@
|
|||
*/
|
||||
package mage.abilities.effects.common;
|
||||
|
||||
import mage.Constants;
|
||||
import mage.Constants.Outcome;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
|
@ -38,7 +37,7 @@ import mage.game.permanent.Permanent;
|
|||
import mage.players.Player;
|
||||
import mage.target.Target;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.util.functions.ApplyToPermanent;
|
||||
import mage.util.functions.EmptyApplyToPermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -73,12 +72,7 @@ public class CopyPermanentEffect extends OneShotEffect<CopyPermanentEffect> {
|
|||
player.choose(Outcome.Copy, target, source.getSourceId(), game);
|
||||
Permanent copyFromPermanent = game.getPermanent(target.getFirstTarget());
|
||||
if (copyFromPermanent != null) {
|
||||
game.copyPermanent(copyFromPermanent, sourcePermanent, source, new ApplyToPermanent() {
|
||||
@Override
|
||||
public Boolean apply(Game game, Permanent permanent) {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
game.copyPermanent(copyFromPermanent, sourcePermanent, source, new EmptyApplyToPermanent());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue