def execute(self):
        #find the target:
        target = self.pc.location.get_player(self.args)
        if not target:
            target = self.pc.location.get_npc_by_kw(self.args)
            if not target:
                self.pc.update_output("Attack whom?")
                return
        # set the players default target.
        self.pc.battle_target = target
        if not self.pc.battle:
            self.world.log.debug((self.pc.fancy_name(), target.fancy_name()) %"Beginning battle between %s and %s")
            # Start the battle if it doesn't exist yet.
            self.pc.enter_battle()
            b = Battle()
            b.teamA.append(self.pc)
            self.pc.battle = b
            b.teamB.append(target)
            target.battle = b
            target.enter_battle()
            self.world.battle_add(b)
            target.battle_target = self.pc
            self.pc.free_attack()
        self.pc.update_output("")
    

#command_list.register(Attack, ['attack', 'kill'])
#command_help.register(Attack.help, ['attack', 'kill'])
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/commands/commands.py/Attack.execute/swapped operands of `%`