| 135 | } |
| 136 | |
| 137 | public List<PaperCard> getCommanders() { |
| 138 | List<PaperCard> result = Lists.newArrayList(); |
| 139 | final CardPool cp = get(DeckSection.Commander); |
| 140 | if (cp == null) { |
| 141 | return result; |
| 142 | } |
| 143 | for (final Entry<PaperCard, Integer> c : cp) { |
| 144 | result.add(c.getKey()); |
| 145 | } |
| 146 | if (result.size() > 1) { //sort by type so signature spell comes after oathbreaker |
| 147 | result.sort(Comparator.comparing(c -> c.getRules().canBeSignatureSpell())); |
| 148 | } |
| 149 | return result; |
| 150 | } |
| 151 | |
| 152 | //at least for now, Oathbreaker will only support one oathbreaker and one signature spell |
| 153 | public PaperCard getOathbreaker() { |