CORE: updatemask in ai_char_charm.cpp