Fixed MSVC's complaints about implicit casts, uncovered get_damage_range() bug and fixed