seqfposend function

End of first spell in given state