Fixes such as those in issue 195

Converting to bool and fixing braces
Merge pull request #283 from mikeclemson/fix-mage-mobiles-attacking-twice-per-tick

Fixes such as those in issue 195