def set_most_likely_ability_unless_revealed(self): if self.ability is not None: logger.debug("{} has revealed it's ability as {}, not guessing".format(self.name, self.ability)) return ability = get_most_likely_ability(self.name) logger.debug("Guessing ability={} for {}".format(ability, self.name)) self.ability = ability
def set_most_likely_ability_unless_revealed(self): if self.ability is not None: return ability = get_most_likely_ability(self.name) self.ability = ability