terryma/hearth.cards — pull request #8 by scizzorz (2014-12-16 22:59:11+00:00)
Title: Issue #5

This was the first time I've ever used CoffeeScript, so it might not be the best idiomatic code.

Heroes and Hero Power tokens are ignored, because outside of Naxx, I don't really think anyone cares.

It would be more ideal if tokens had some sort of indicator to mark them as non-draftable, but I'm not familiar enough with the framework to add that.

In order to maintain the quoted search feature, it has to prefer draftable cards over token cards or searches like `"wrath"` will have the draftable Druid card as well as both of its token spells, resulting in a `>1` array length that ignores the quoted search.