We have an method bool player::worn_with_flag(flag) now that you can use for this.