JavascriptBattle/hero-starter — pull request #27 by yojimbo311 (2014-10-10 19:56:14+00:00)
Title: Generic object search helper: Return the full object

Modified helpers.findNearestObjectDirectionAndDistance to return the found tile object rather than a generic object with just the subset distance, direction and coords data while making sure to avoid any refactoring.

This allows hero scripts to avoid having to do secondary lookups against the board data just to run comparisons on things like enemy or friend health etc. when implementing more complicated pathing logic.