Skip to content

Commit

Permalink
Merge pull request #70 from johnliss/fix-missing-monster-crs
Browse files Browse the repository at this point in the history
Fix missing monster Challenge Ratings
  • Loading branch information
codeGlaze authored Jan 31, 2019
2 parents d93f9a9 + 852233e commit e865f9d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/cljs/orcpub/dnd/e5/spell_subs.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,12 @@
(reg-sub
::monsters5e/challenge-ratings
(fn [db _]
(into (sorted-set) (map :challenge) monsters5e/monsters)))
(into (sorted-set)
(keep
(fn [pair]
(when (pos? (second pair))
(first pair)))
monsters5e/challenge-ratings))))

(reg-sub
::classes5e/has-prof?
Expand Down

0 comments on commit e865f9d

Please sign in to comment.