int have_effect(effect)
returns an int value indicating the number of adventures of an effect you have.
Status: Broken by recent changes to the kingdom and may be fixed in the next release.
Till it is fixed, have_effect will return 0 for any effects which can be shrugged off, and maybe some that cannot.
Moving to kolmafia support.