Don't crash when attacking nameless entities

The fix is a bit of a hack. Entities must have names.
Update .gitignore
Merge branch 'master' into gui