Zoo Keeper Help!(Python)

The last if

if friend:
            self.command(friend, "move", point)

is always true so every attack command will be followed by a “move” command which overwrites the attack command.
attack + move = move only