I think that is due to this:
// if we know how to bind a Spaghetti Elemental
if ( have_skill($skill[Bind Spaghetti Elemental]))
use_skill($skill[Bind Spaghetti Elemental]);
return ( my_thrall() == $thrall[Spaghetti Elemental]);
That would need {}-encapsulation since it...