private static bool HasState(Character character, string state)
        {
            if (Enum.TryParse(state.Trim().ToUpperInvariant(), out CreatureState creatureState))
            {
                switch (creatureState)
                {
                case CreatureState.TAMED:
                    return(character.IsTamed());

                case CreatureState.EVENT:
                    MonsterAI ai = CharacterCache.GetMonsterAI(character);

                    if (ai is null)
                    {
                        return(false);
                    }

                    return(ai.IsEventCreature());

                default:
                    return(true);
                }
            }
            else
            {
                Log.LogWarning($"Unable to parse creature state {state}");
                return(false);
            }
        }