Refactoring

We don't need to override basic methods to just call the basic method again.
This commit is contained in:
vraskulin 2017-01-09 18:13:43 +03:00
parent b626bf6866
commit a9f2c8c407
6 changed files with 4 additions and 25 deletions

View file

@ -132,6 +132,6 @@ public class TargetSpell extends TargetObject {
private boolean canBeChosen(StackObject stackObject, UUID sourceID, UUID sourceControllerId, Game game) {
return stackObject instanceof Spell
&& game.getState().getPlayersInRange(sourceControllerId, game).contains(stackObject.getControllerId())
&& filter.match((Spell) stackObject, sourceID, sourceControllerId, game);
&& filter.match(stackObject, sourceID, sourceControllerId, game);
}
}