Fixed compile error on getFixedTarget and failed test on new lower names

This commit is contained in:
Oleg Agafonov 2018-02-23 16:15:59 +04:00
parent a2b6f83a3e
commit 5b0e71021d
5 changed files with 18 additions and 20 deletions

View file

@ -87,4 +87,13 @@ public class FixedTargets implements TargetPointer {
return new FixedTargets(this);
}
@Override
public FixedTarget getFixedTarget(Game game, Ability source) {
this.init(game, source);
UUID firstId = getFirst(game, source);
if (firstId != null) {
return new FixedTarget(firstId, game.getState().getZoneChangeCounter(firstId));
}
return null;
}
}

View file

@ -80,6 +80,5 @@ public class SecondTargetPointer implements TargetPointer {
return new FixedTarget(firstId, game.getState().getZoneChangeCounter(firstId));
}
return null;
}
}