fixed changeToMate being NaN when target entity health is not defined