* Fixed problem with CopyEffect and fixed MisdirectionTest.

This commit is contained in:
LevelX2 2014-12-25 11:31:48 +01:00
parent 883021832e
commit dba3c881e1
2 changed files with 4 additions and 4 deletions

View file

@ -80,13 +80,13 @@ public class CopyEffect extends ContinuousEffectImpl {
public void init(Ability source, Game game) {
super.init(source, game);
if (affectedObjectsSet) {
affectedObjectList.add(new MageObjectReference(source.getSourceId(), game));
affectedObjectList.add(new MageObjectReference(sourceId, game));
}
}
@Override
public boolean apply(Game game, Ability source) {
Permanent permanent = game.getPermanent(this.sourceId);
Permanent permanent;
if (affectedObjectsSet) {
permanent = affectedObjectList.get(0).getPermanent(game);
} else {