Commit efe15b7a authored by Maiyannah Bishop's avatar Maiyannah Bishop

[Imp] Invoke pcall correctly in the Tattoo constraints for autodef #200

parent e867751f
......@@ -646,8 +646,8 @@ end
--
-- TODO: Can't do when arms are broken, add that as a constraint
function Berkana.Imperian.Constraints.OwlTattoo()
has_owl = Character.Tattoos.hasOwl()
has_eqbal = Berkana.Imperian.RequiresBalEq()
rtn, has_owl = pcall(Character.Tattoos.hasOwl)
rtn, has_eqbal = pcall(Berkana.Imperian.RequiresBalEq)
Valkryja.Debug("In OWL constraints,"..
"has_owl="..tostring(has_owl)..", has_eqbal="..tostring(has_eqbal), false)
if (has_owl == true) and (has_eqbal == true) then
......@@ -667,8 +667,9 @@ end
--
-- TODO: Can't do when arms are broken, add that as a constraint
function Berkana.Imperian.Constraints.MoonTattoo()
has_moon = Character.Tattoos.hasMoon()
has_eqbal = Berkana.Imperian.RequiresBalEq()
rtn, has_moon = pcall(Character.Tattoos.hasMoon)
rtn, has_eqbal = pcall(Berkana.Imperian.RequiresBalEq)
rtn = nil
Valkryja.Debug("In MOON constraints,"..
"has_moon="..tostring(has_moon)..", has_eqbal="..tostring(has_eqbal), false)
if (has_moon == true) and (has_eqbal == true) then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment