Closed theludovyc closed 1 year ago
Then it should use has_character()
before trying to use get_character()
It is more simple if we remove second one
You should not call has_character before get_character, it is useless. has_character is only for check if you have one get_character is to get it. if it not exist it return null. so it already handle "has_character"
I see, you are right, I forgot that get_character()
already pushes the error
and that we return available variables in error if character exist,
so just removing second one push error will be easier.
get_character_variable call get_character that push an error if a character as not found. But first one do it too. So same error are pushed two times.