@log_info
    def get_action(self, parameters):
        attacker = parameters.attacker
        target = self.get_target(parameters)
        weapon = attacker.inventory.weapon
        weapon_data = weapon.weapon_data

        attack = AttackAction(
            attack_type='melee',
            to_hit=MeleeToHit(attacker,
                              target,
                              parameters.rng),
            damage=new_damage(weapon_data.damage),
            attacker=attacker,
            target=target,
            effect_factory=self.effect_factory,
            dying_rules=self.dying_rules,
            additional_rules=AdditionalRules(attacker))

        return attack
Triggers the validation
dataset/ETHPy150Open tuturto/pyherc/src/pyherc/rules/combat/factories.py/MeleeCombatFactory.get_action--crossover with--dataset/ETHPy150Open fiam/wapi/validators.py/Validator.__call__