From 4b07a6001e0398de09ab99d9f660625697cbfde9 Mon Sep 17 00:00:00 2001 From: lethosor Date: Fri, 4 Mar 2016 17:54:32 -0500 Subject: [PATCH] gaydar: handle soul-less creatures and fix spacing --- scripts/gaydar.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/gaydar.lua b/scripts/gaydar.lua index bb8d69894..327a40796 100644 --- a/scripts/gaydar.lua +++ b/scripts/gaydar.lua @@ -73,11 +73,11 @@ function getSexString(sex) end local function determineorientation(unit) - if unit.sex~=-1 then + if unit.sex~=-1 and unit.status.current_soul then local return_string='' local orientation=unit.status.current_soul.orientation_flags if orientation.indeterminate then - return 'indeterminate (probably adventurer)' + return ' indeterminate (probably adventurer)' end local male_interested,asexual=false,true if orientation.romance_male then @@ -109,7 +109,7 @@ local function determineorientation(unit) end return return_string else - return "is not biologically capable of sex" + return " is not biologically capable of sex" end end