def set_static_role(self, role):
    if self.has_static_role(role):
        return
    self.static_roles |= role.mask
def set_static_role(self, role):
    if self.has_static_role(role):
        return
    self.static_roles |= role.mask