Skip to content

Commit

Permalink
Added commanders to deck embeds
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerBloom committed Nov 28, 2022
1 parent a79c81f commit b56138c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/utils/sort_deck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@ impl TypeSortedDeck {
bool,
)> {
let mut digest = Vec::with_capacity(10);
if !self.commanders.is_empty() {
digest.push((
format!("Commander ({}):", self.count_lands()),
Box::new(self.commanders.iter().cloned())
as Box<dyn Iterator<Item = String> + Send + 'a>,
"\n",
true,
));
}
if !self.lands.is_empty() {
digest.push((
format!("Land ({}):", self.count_lands()),
Expand Down

0 comments on commit b56138c

Please sign in to comment.