Replaced by EmptyApplyToPermanent

This commit is contained in:
magenoxx 2012-07-21 12:15:25 +04:00
parent 21b8c8a354
commit 1f06ad6dce

View file

@ -27,7 +27,6 @@
*/ */
package mage.abilities.effects.common; package mage.abilities.effects.common;
import mage.Constants;
import mage.Constants.Outcome; import mage.Constants.Outcome;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.abilities.effects.OneShotEffect; import mage.abilities.effects.OneShotEffect;
@ -38,7 +37,7 @@ import mage.game.permanent.Permanent;
import mage.players.Player; import mage.players.Player;
import mage.target.Target; import mage.target.Target;
import mage.target.TargetPermanent; 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); player.choose(Outcome.Copy, target, source.getSourceId(), game);
Permanent copyFromPermanent = game.getPermanent(target.getFirstTarget()); Permanent copyFromPermanent = game.getPermanent(target.getFirstTarget());
if (copyFromPermanent != null) { if (copyFromPermanent != null) {
game.copyPermanent(copyFromPermanent, sourcePermanent, source, new ApplyToPermanent() { game.copyPermanent(copyFromPermanent, sourcePermanent, source, new EmptyApplyToPermanent());
@Override
public Boolean apply(Game game, Permanent permanent) {
return true;
}
});
return true; return true;
} }