globals
integer dosuPassCharges=0
integer DOSU_REASONATE_THRESHOLD = 35
endglobals
function isReasonate takes nothing returns boolean
return (dosuPassCharges >= DOSU_REASONATE_THRESHOLD)
endfunction
function dosuWupdate takes nothing returns boolean
if isReasonate then return true
endif
return false
endfunction
When I call this function further down in script, isReasonate gets compiled to (1), which throws "cannot convert int to bool"