* Some refactoring.

This commit is contained in:
LevelX2 2018-01-13 14:45:50 +01:00
parent c41b59a006
commit 6693929557
55 changed files with 439 additions and 529 deletions

View file

@ -64,10 +64,7 @@ public class RemoveCountersSourceCost extends CostImpl {
@Override
public boolean canPay(Ability ability, UUID sourceId, UUID controllerId, Game game) {
Permanent permanent = game.getPermanent(sourceId);
if (permanent != null && permanent.getCounters(game).getCount(name) >= amount) {
return true;
}
return false;
return permanent != null && permanent.getCounters(game).getCount(name) >= amount;
}
@Override